-
Notifications
You must be signed in to change notification settings - Fork 0
/
Udacity_2.postman_collection.json
137 lines (137 loc) · 3.67 KB
/
Udacity_2.postman_collection.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"info": {
"_postman_id": "9984c6dc-231f-4c13-ae9c-38ef8bebb8a6",
"name": "Udacity_2",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "15737535"
},
"item": [
{
"name": "GetCar",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{carControllerUrl}}/1",
"host": [
"{{carControllerUrl}}"
],
"path": [
"1"
]
}
},
"response": []
},
{
"name": "GetCarList",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{carControllerUrl}}",
"host": [
"{{carControllerUrl}}"
]
}
},
"response": []
},
{
"name": "PostCar",
"protocolProfileBehavior": {
"disabledSystemHeaders": {}
},
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": null,\r\n \"createdAt\": null,\r\n \"modifiedAt\": null,\r\n \"condition\": \"USED\",\r\n \"details\": {\r\n \"body\": \"sedan\",\r\n \"model\": \"Impala\",\r\n \"manufacturer\": {\r\n \"code\": 101,\r\n \"name\": \"Chevrolet\"\r\n },\r\n \"numberOfDoors\": 4,\r\n \"fuelType\": \"Gasoline\",\r\n \"engine\": \"3.6L V6\",\r\n \"mileage\": 32280,\r\n \"modelYear\": 2018,\r\n \"productionYear\": 2018,\r\n \"externalColor\": \"white\"\r\n },\r\n \"location\": {\r\n \"lat\": 40.73061,\r\n \"lon\": -73.935242,\r\n \"address\": \"test\",\r\n \"city\": \"test\",\r\n \"state\": \"test\",\r\n \"zip\": \"test\"\r\n },\r\n \"price\": \"200\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{carControllerUrl}}",
"host": [
"{{carControllerUrl}}"
]
}
},
"response": []
},
{
"name": "PutCar",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": null,\r\n \"createdAt\": null,\r\n \"modifiedAt\": null,\r\n \"condition\": \"USED\",\r\n \"details\": {\r\n \"body\": \"testcar\",\r\n \"model\": \"Impala\",\r\n \"manufacturer\": {\r\n \"code\": 101,\r\n \"name\": \"Chevrolet\"\r\n },\r\n \"numberOfDoors\": 4,\r\n \"fuelType\": \"Gasoline\",\r\n \"engine\": \"3.6L V6\",\r\n \"mileage\": 32280,\r\n \"modelYear\": 2018,\r\n \"productionYear\": 2018,\r\n \"externalColor\": \"white\"\r\n },\r\n \"location\": {\r\n \"lat\": 40.73061,\r\n \"lon\": -73.935242,\r\n \"address\": \"test\",\r\n \"city\": \"test\",\r\n \"state\": \"test\",\r\n \"zip\": \"test\"\r\n },\r\n \"price\": \"200\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{carControllerUrl}}/1",
"host": [
"{{carControllerUrl}}"
],
"path": [
"1"
]
}
},
"response": []
},
{
"name": "DeleteCar",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{carControllerUrl}}/1",
"host": [
"{{carControllerUrl}}"
],
"path": [
"1"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "carControllerUrl",
"value": "http://localhost:8080/cars",
"type": "string"
}
]
}