forked from vmware-tanzu-learning/pal-tracker-distributed
-
Notifications
You must be signed in to change notification settings - Fork 1
/
requests.http
49 lines (33 loc) · 1.11 KB
/
requests.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
### Create user
POST {{registrationUrl}}/registration
Content-Type: application/json
{"name": "Sally"}
### Get user
GET {{registrationUrl}}/users/USER-ID
### Get account
GET {{registrationUrl}}/accounts?ownerId=USER-ID
### Create project
POST {{registrationUrl}}/projects
Content-Type: application/json
{"name": "Basket Weaving III", "accountId": ACCOUNT-ID}
### Get projects
GET {{registrationUrl}}/projects?accountId=ACCOUNT-ID
### Create allocation
POST {{allocationsUrl}}/allocations
Content-Type: application/json
{"projectId": PROJECT-ID, "userId": USER-ID, "firstDay": "2015-05-17", "lastDay": "2015-05-18"}
### Get allocations
GET {{allocationsUrl}}/allocations?projectId=PROJECT-ID
### Create story
POST {{backlogUrl}}/stories
Content-Type: application/json
{"projectId": PROJECT-ID, "name": "Find some reeds"}
### Get stories
GET {{backlogUrl}}/stories?projectId=PROJECT-ID
### Create timesheet
POST {{timesheetsUrl}}/time-entries/
Content-Type: application/json
{"projectId": PROJECT-ID, "userId": USER-ID, "date": "2015-05-17", "hours": 6}
### Get timesheets
GET {{timesheetsUrl}}/time-entries?userId=USER-ID
###