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