Advertisement
Guest User

Untitled

a guest
Apr 1st, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.22 KB | None | 0 0
  1. {
  2.   "consumer": {
  3.     "name": "example-ui"
  4.   },
  5.   "provider": {
  6.     "name": "example-backend"
  7.   },
  8.   "interactions": [
  9.     {
  10.       "_id": "64ace280d349f71ec4c57db269233aa9436c93b7",
  11.       "description": "a request to GET regions",
  12.       "providerState": "regions exist",
  13.       "request": {
  14.         "method": "GET",
  15.         "path": "/api/regions"
  16.       },
  17.       "response": {
  18.         "status": 200,
  19.         "headers": {},
  20.         "body": [
  21.           {
  22.             "id": 987,
  23.             "name": "Periferia Z",
  24.             "regional_units": [
  25.               {
  26.                 "id": 654,
  27.                 "name": "a name Z1",
  28.                 "municipalities": [
  29.                   {
  30.                     "id": 321,
  31.                     "name": "mname Z11"
  32.                   }
  33.                 ]
  34.               }
  35.             ]
  36.           }
  37.         ],
  38.         "matchingRules": {
  39.           "$.body": {
  40.             "min": 1
  41.           },
  42.           "$.body[*].*": {
  43.             "match": "type"
  44.           },
  45.           "$.body[*].id": {
  46.             "match": "type"
  47.           },
  48.           "$.body[*].regional_units": {
  49.             "min": 1
  50.           },
  51.           "$.body[*].regional_units[*].*": {
  52.             "match": "type"
  53.           },
  54.           "$.body[*].regional_units[*].municipalities": {
  55.             "min": 1
  56.           },
  57.           "$.body[*].regional_units[*].municipalities[*].*": {
  58.             "match": "type"
  59.           }
  60.         }
  61.       }
  62.     },
  63.     {
  64.       "_id": "5ad0173070aa769c9ca11e21dc918c4e31ef4885",
  65.       "description": "a request to GET calls",
  66.       "providerState": "calls exist",
  67.       "request": {
  68.         "method": "GET",
  69.         "path": "/api/call"
  70.       },
  71.       "response": {
  72.         "status": 200,
  73.         "headers": {},
  74.         "body": [
  75.           {
  76.             "id": 123,
  77.             "title": "mpla mpla",
  78.             "mis": "233445"
  79.           }
  80.         ],
  81.         "matchingRules": {
  82.           "$.body": {
  83.             "min": 1
  84.           },
  85.           "$.body[*].*": {
  86.             "match": "type"
  87.           }
  88.         }
  89.       }
  90.     }
  91.   ],
  92.   "metadata": {
  93.     "pactSpecification": {
  94.       "version": "3.0.0"
  95.     }
  96.   },
  97.   "createdAt": "2021-04-01T20:27:21+00:00"
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement