-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservers.pact.json
51 lines (51 loc) · 986 Bytes
/
servers.pact.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"consumer": {
"name": "servers-consumer"
},
"provider": {
"name": "servers-provider"
},
"interactions": [
{
"description": "a request to get a Dog (mismatch)",
"request": {
"method": "GET",
"path": "/v1/animals/1"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"name": "Rover",
"owner": "Drover",
"bark": "dry"
}
}
},
{
"description": "a request to get a Dog (fail)",
"request": {
"method": "GET",
"path": "/animals/1"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"name": "Rover",
"owner": "Drover",
"bark": "dry"
}
}
}
],
"metadata": {
"pactSpecification": {
"version": "2.0.0"
}
}
}