-
Notifications
You must be signed in to change notification settings - Fork 0
/
Go-Webservice.postman_collection.json
105 lines (105 loc) · 2.08 KB
/
Go-Webservice.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
{
"info": {
"_postman_id": "79801d92-8b87-4b1e-a45a-7105c5840dcb",
"name": "Go-Webservice",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get Products",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:5000/api/products",
"host": [
"localhost"
],
"port": "5000",
"path": [
"api",
"products"
]
}
},
"response": []
},
{
"name": "Post Product",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n\t\t\t\"manufacturer\": \"Small Box Company\",\r\n\t\t\t\"sku\": \"4hslj90JKL\",\r\n\t\t\t\"upc\": \"424654445566\",\r\n\t\t\t\"pricePerUnit\": \"9.99\",\r\n\t\t\t\"quantityOnHand\": 18,\r\n\t\t\t\"productName\": \"Sprocket\"\r\n\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:5000/api/products",
"host": [
"localhost"
],
"port": "5000",
"path": [
"api",
"products"
]
}
},
"response": []
},
{
"name": "Get Product",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:5000/api/products/2",
"host": [
"localhost"
],
"port": "5000",
"path": [
"api",
"products",
"2"
]
}
},
"response": []
},
{
"name": "Put Product",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"productId\": 2,\r\n \"manufacturer\": \"Test\",\r\n \"sku\": \"i7v300kmx\",\r\n \"upc\": \"aaaaaaaaaa\",\r\n \"pricePerUnit\": \"282.29\",\r\n \"quantityOnHand\": 9217,\r\n \"productName\": \"leg warmers\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:5000/api/products/2",
"host": [
"localhost"
],
"port": "5000",
"path": [
"api",
"products",
"2"
]
}
},
"response": []
}
]
}