-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrderNotificationSystem.postman_collection.json
More file actions
55 lines (55 loc) · 1.54 KB
/
Copy pathOrderNotificationSystem.postman_collection.json
File metadata and controls
55 lines (55 loc) · 1.54 KB
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
{
"info": {
"name": "Order Notification System",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Place New Order",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"url": { "raw": "http://localhost:8081/api/v1/orders" },
"body": {
"mode": "raw",
"raw": "{\n \"customerName\": \"Priya Ghadge\",\n \"customerEmail\": \"priya@test.com\",\n \"productName\": \"Laptop\",\n \"quantity\": 1,\n \"price\": 75000.00\n}"
}
}
},
{
"name": "Get Order By ID",
"request": {
"method": "GET",
"url": { "raw": "http://localhost:8081/api/v1/orders/{{orderId}}" }
}
},
{
"name": "Get All Orders",
"request": {
"method": "GET",
"url": { "raw": "http://localhost:8081/api/v1/orders" }
}
},
{
"name": "Get Orders By Email",
"request": {
"method": "GET",
"url": { "raw": "http://localhost:8081/api/v1/orders?email=priya@test.com" }
}
},
{
"name": "Update Status - CONFIRMED",
"request": {
"method": "PATCH",
"url": { "raw": "http://localhost:8081/api/v1/orders/{{orderId}}/status?status=CONFIRMED" }
}
},
{
"name": "Update Status - SHIPPED",
"request": {
"method": "PATCH",
"url": { "raw": "http://localhost:8081/api/v1/orders/{{orderId}}/status?status=SHIPPED" }
}
}
]
}