-
Notifications
You must be signed in to change notification settings - Fork 36
/
hello_world_all_integrated_apis.json
49 lines (49 loc) · 1.48 KB
/
hello_world_all_integrated_apis.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
{
"scenarioName": "GIVEN- the REST end points, WHEN- I invoke POST and GET, THEN- I will create and receive the new emp details",
"steps": [
{
"name": "create_emp",
"url": "/api/v1/google-uk/employees",
"method": "POST",
"request": {
"body": {
"id": 1000,
"name": "Larry Pg",
"addresses": [
{
"gpsLocation": "x9000-y9000z-9000-home"
},
{
"gpsLocation": "x9000-y9000z-9000-home-off"
}
]
}
},
"verify": {
"status": 201
}
},
{
"name": "get_user_details",
"url": "/api/v1/google-uk/employees/${$.create_emp.response.body.id}",
"method": "GET",
"request": {
},
"verify": {
"status": 200,
"body": {
"id": 1000,
"name": "Larry Pg",
"addresses": [
{
"gpsLocation": "x9000-y9000z-9000-home"
},
{
"gpsLocation": "x9000-y9000z-9000-home-off"
}
]
}
}
}
]
}