d1c58a6c8426b0857ce7af3c99d59763860b50f9
[demos/example-siren] / spring-consumer / target / pacts / SpringConsumer-Siren Order Provider.json
1 {
2   "consumer": {
3     "name": "SpringConsumer"
4   },
5   "interactions": [
6     {
7       "description": "get all orders",
8       "request": {
9         "method": "GET",
10         "path": "/orders"
11       },
12       "response": {
13         "body": {
14           "actions": [
15             {
16               "name": "update"
17             }
18           ]
19         },
20         "headers": {
21           "Content-Type": "application/vnd.siren+json"
22         },
23         "matchingRules": {
24           "body": {
25             "$.actions": {
26               "combine": "AND",
27               "matchers": [
28                 {
29                   "match": "arrayContains",
30                   "variants": [
31                     {
32                       "generators": {
33
34                       },
35                       "index": 0,
36                       "rules": {
37                         "$.name": {
38                           "combine": "AND",
39                           "matchers": [
40                             {
41                               "match": "type"
42                             }
43                           ]
44                         }
45                       }
46                     }
47                   ]
48                 }
49               ]
50             }
51           }
52         },
53         "status": 200
54       }
55     },
56     {
57       "description": "get root",
58       "request": {
59         "method": "GET",
60         "path": "/"
61       },
62       "response": {
63         "headers": {
64           "Content-Type": "application/vnd.siren+json"
65         },
66         "status": 200
67       }
68     }
69   ],
70   "metadata": {
71     "pact-jvm": {
72       "version": "4.2.2"
73     },
74     "pactSpecification": {
75       "version": "3.0.0"
76     }
77   },
78   "provider": {
79     "name": "Siren Order Provider"
80   }
81 }