-
Notifications
You must be signed in to change notification settings - Fork 447
/
Copy pathsample_microservice-weather_provider.json
87 lines (87 loc) · 1.8 KB
/
sample_microservice-weather_provider.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"consumer": {
"name": "sample_microservice"
},
"interactions": [
{
"description": "a request for a weather request for Hamburg",
"providerStates": [
{
"name": "weather forecast data"
}
],
"request": {
"method": "GET",
"path": "/data/2.5/weather",
"query": {
"appid": [
"someAppId"
],
"q": [
"Hamburg,de"
]
}
},
"response": {
"body": {
"base": "stations",
"clouds": {
"all": 0
},
"cod": 200,
"coord": {
"lat": 53.55,
"lon": 10
},
"dt": 1600610385,
"id": 2911298,
"main": {
"feels_like": 292.46,
"humidity": 35,
"pressure": 1019,
"temp": 295.22,
"temp_max": 295.37,
"temp_min": 295.15
},
"name": "Hamburg",
"sys": {
"country": "DE",
"id": 1263,
"sunrise": 1600578166,
"sunset": 1600622640,
"type": 1
},
"timezone": 7200,
"visibility": 10000,
"weather": [
{
"description": "a light drizzle",
"icon": "01d",
"id": 800,
"main": "raining"
}
],
"wind": {
"deg": 30,
"speed": 2.6
}
},
"headers": {
"Content-Type": "application/json; charset=UTF-8"
},
"status": 200
}
}
],
"metadata": {
"pact-jvm": {
"version": "4.3.5"
},
"pactSpecification": {
"version": "3.0.0"
}
},
"provider": {
"name": "weather_provider"
}
}