-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.txt
65 lines (51 loc) · 1.16 KB
/
routes.txt
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
1. Register as….
POST /api/register/
{
“Type”: admin | supplier | requester | organization | representative
“Username”: “”
“Password”: “”,
“Name”: {
“First Name”: “”,
“Middle Initial”: “”,
“Last Name”: “”
},
“Date of Birth”: date
“Address”: {“street1” , “street2” , “city” , “country” , “zip code”}
“Gender”: “male | female | other”,
“Email”: “”
“Created Date”
}
Get all roles
GET /api/user/roles
Return:
[
“roles”: {
“Admin”,
“Supplier”,
“Requester”,
“organization admin”,
“organization representative”
}
]
GET /api/user/:id/requests
POST /api/login
{‘username’: ‘*****’, “password”: “************”}
POST /api/request
{
“Customer id”
“resource_type”: “”,
“qty”: “”,
“Location”
“Delivery Method”
“Created Date”
}
GET /api/providers
GET /api/requesters
GET /api/resources/types
This is for
GET api/resources/available/:provider/:keyword
To get
GET api/resources/requests/:userID/:provider/keyword
Cancelled, withdrawn
PUT api/resources/:id/update-status
GET api/statistics/:type