-
Notifications
You must be signed in to change notification settings - Fork 0
/
req.http
113 lines (93 loc) · 2.73 KB
/
req.http
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
106
107
108
109
110
111
112
113
GET http://localhost:3000/api/resources/getall
GET http://spm-api-568599112.us-west-2.elb.amazonaws.com/api/assignments/getallcsv
GET http://localhost:3000/api/resources/getdetails/5adfbf1fccd4192ea0495f5e
GET http://localhost:3000/api/resources/getallwithdetails
GET http://spm-api-749052067.us-west-2.elb.amazonaws.com/api/resources/getdetails/5ada16cc7ab3e758d3b34500
GET http://localhost:3000/api/assignments/getall
POST http://localhost:3000/api/resources/add
content-type: application/json
{"projects":[{"rate":175,"role":"Architect","account":"ABC","assignment":"AAD"}],"name":"Vaibhav","location":"onshore"}
POST http://35.164.158.77:32769/api/resources/add
content-type: application/json
{
"name": "John Doe",
"location": "onshore",
"projects": [
{
"account": "ABC",
"assignment": "AAE",
"rate": 155,
"role": "Architect",
"allocation": [
{
"week": "5/9/2018",
"hours": "20"
},
{
"week": "5/30/2018",
"hours": "20"
},
{
"week": "5/16/2018",
"hours": "10"
}
]
},
{
"account": "ABC",
"assignment": "AAD",
"rate": 150,
"role": "Architect",
"allocation": [
{
"week": "5/9/2018",
"hours": "20"
},
{
"week": "5/30/2018",
"hours": "20"
},
{
"week": "5/16/2018",
"hours": "10"
}
]
}
]
}
PUT http://localhost:3000/api/resources/updateallocation
content-type: application/json
{
"id":"5ace3ad431370c218356c3f1",
"projects":[
{
"account": "ABC",
"assignment": "XYZ",
"rate": 150,
"role": "Architect",
"allocation": [
{
"week": "5/9/2018",
"hours": "20"
},
{
"week": "5/30/2018",
"hours": "20"
},
{
"week": "5/16/2018",
"hours": "10"
}
]
}
]
}
DELETE http://localhost:3000/api/resources/delete/5ace00203b4b903296621284
PUT http://localhost:3000/api/resources/removeallocation
content-type: application/json
{
"id":"5ad0de3544bcd4ca6d0e19c8",
"assignment":"AAD",
"account":"ABC"
}
GET http://35.164.158.77:32769/api/resources/getall