Skip to content

Commit 178dd28

Browse files
committed
added postman collection for testing end points
1 parent d49cdc2 commit 178dd28

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"info": {
3+
"_postman_id": "ea25833c-e192-4a5e-a948-9ce1e01a8e6c",
4+
"name": "Product-Service-SpringBoot-docker",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6+
"_exporter_id": "14560701"
7+
},
8+
"item": [
9+
{
10+
"name": "getAllProducts",
11+
"request": {
12+
"method": "GET",
13+
"header": [],
14+
"url": {
15+
"raw": "http://localhost:8081/product-service/getAllProducts",
16+
"protocol": "http",
17+
"host": [
18+
"localhost"
19+
],
20+
"port": "8081",
21+
"path": [
22+
"product-service",
23+
"getAllProducts"
24+
]
25+
}
26+
},
27+
"response": []
28+
},
29+
{
30+
"name": "getSingleProduct",
31+
"request": {
32+
"method": "GET",
33+
"header": [],
34+
"url": {
35+
"raw": "http://localhost:8081/product-service/getProduct/2",
36+
"protocol": "http",
37+
"host": [
38+
"localhost"
39+
],
40+
"port": "8081",
41+
"path": [
42+
"product-service",
43+
"getProduct",
44+
"2"
45+
]
46+
}
47+
},
48+
"response": []
49+
},
50+
{
51+
"name": "addProduct",
52+
"request": {
53+
"method": "POST",
54+
"header": [],
55+
"body": {
56+
"mode": "raw",
57+
"raw": "{\r\n \"skuCode\": \"KUKPH\",\r\n \"pName\": \"Kuku iPhone\"\r\n}",
58+
"options": {
59+
"raw": {
60+
"language": "json"
61+
}
62+
}
63+
},
64+
"url": {
65+
"raw": "http://localhost:8081/product-service/addProduct",
66+
"protocol": "http",
67+
"host": [
68+
"localhost"
69+
],
70+
"port": "8081",
71+
"path": [
72+
"product-service",
73+
"addProduct"
74+
]
75+
}
76+
},
77+
"response": []
78+
}
79+
]
80+
}

0 commit comments

Comments
 (0)