d14b5d0ddebdc6d67a80e0ca49856ff68447fe02
[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             "foo"
16           ]
17         },
18         "headers": {
19           "Content-Type": "application/vnd.siren+json"
20         },
21         "matchingRules": {
22           "body": {
23             "$.actions": {
24               "combine": "AND",
25               "matchers": [
26                 {
27                   "match": "arrayContains",
28                   "variants": [
29                     {
30                       "generators": {
31
32                       },
33                       "index": 0,
34                       "rules": {
35                         "$": {
36                           "combine": "AND",
37                           "matchers": [
38                             {
39                               "match": "type"
40                             }
41                           ]
42                         }
43                       }
44                     }
45                   ]
46                 }
47               ]
48             }
49           }
50         },
51         "status": 200
52       }
53     },
54     {
55       "description": "get root",
56       "request": {
57         "method": "GET",
58         "path": "/"
59       },
60       "response": {
61         "headers": {
62           "Content-Type": "application/vnd.siren+json"
63         },
64         "status": 200
65       }
66     }
67   ],
68   "metadata": {
69     "pact-jvm": {
70       "version": "4.2.2"
71     },
72     "pactSpecification": {
73       "version": "3.0.0"
74     }
75   },
76   "provider": {
77     "name": "Siren Order Provider"
78   }
79 }