-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStarterAPIs.json
94 lines (94 loc) · 1.89 KB
/
StarterAPIs.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
88
89
90
91
92
93
94
{
"info": {
"_postman_id": "968b3a18-cc72-48a2-9b6b-e8619b4aaca8",
"name": "Starter APIs",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Create Employee",
"event": [
{
"listen": "test",
"script": {
"id": "38b1717c-45ae-477f-8dae-8e889ba381d5",
"exec": [
"pm.test(\"Successful response\", function () {",
" pm.expect(pm.response.text()).to.include(\"success\");",
"});",
"var json = pm.response.json();",
"pm.environment.set(\"id\", json.data.id);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"{{name}}\",\n \"salary\": \"{{salary}}\",\n \"age\": \"{{age}}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://dummy.restapiexample.com/api/v1/create",
"protocol": "http",
"host": [
"dummy",
"restapiexample",
"com"
],
"path": [
"api",
"v1",
"create"
]
}
},
"response": []
},
{
"name": "Get All Employees",
"event": [
{
"listen": "test",
"script": {
"id": "af3cb111-e3ac-4174-b8ca-7f4127a0285d",
"exec": [
"pm.test(\"Successful response\", function () {",
" pm.expect(pm.response.text()).to.include(\"success\");",
"});",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://dummy.restapiexample.com/api/v1/employees",
"protocol": "http",
"host": [
"dummy",
"restapiexample",
"com"
],
"path": [
"api",
"v1",
"employees"
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}