-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWorkOrderAPI.postman_collection.json
105 lines (105 loc) · 3.03 KB
/
WorkOrderAPI.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": "89479bb4-4a72-4163-9af8-4a03419cf626",
"name": "WorkOrderAPI",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "/workorder/addOrder",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"requesterId\" : 20,\n\t\"timeOfRequest\" : 5000000000\n}"
},
"url": "http://localhost:8080/workorder/addOrder",
"description": "An endpoint for adding a ID to queue (enqueue). This endpoint should accept two parameters, the ID to enqueue and the time at which the ID was added to the queue."
},
"response": []
},
{
"name": "/workorder/getOrderList",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": "http://localhost:8080/workorder/getOrderList",
"description": "An endpoint for getting the list of IDs in the queue. This endpoint should return a list of IDs sorted from highest ranked to lowest."
},
"response": []
},
{
"name": "/workorder/getPosition/{requesterId}",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": "http://localhost:8080/workorder/getPosition/20",
"description": "An endpoint to get the position of a specific ID in the queue. This endpoint should accept one parameter, the ID to get the position of. It should return the position of the ID in the queue indexed from 0."
},
"response": []
},
{
"name": "/workorder/avgWaitTime/{timeOfReference}",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": "http://localhost:8080/workorder/avgWaitTime/9000000000",
"description": "An endpoint to get the average wait time. This endpoint should accept a single parameter, the current time, and should return the average (mean) number of seconds that each ID has been waiting in the queue."
},
"response": []
},
{
"name": "/workorder/remove/{requesterId}",
"request": {
"method": "DELETE",
"header": [],
"body": {},
"url": "http://localhost:8080/workorder/remove/20",
"description": "An endpoint for removing a specific ID from the queue. This endpoint should accept a single parameter, the ID to remove."
},
"response": []
},
{
"name": "/workorder/removeNextOrder",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": "http://localhost:8080/workorder/removeNextOrder",
"description": "An endpoint for getting the top ID from the queue and removing it (dequeue). This endpoint should return the highest ranked ID and the time it was entered into the queue."
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "f2b10a4d-2d7d-4115-aefd-70861e43b528",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "441fc79c-df14-48e3-aab5-aa9f437870c7",
"type": "text/javascript",
"exec": [
""
]
}
}
]
}