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