forked from jade-nguyen/spring-cloud-developer-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequests.http
More file actions
31 lines (21 loc) · 681 Bytes
/
Copy pathrequests.http
File metadata and controls
31 lines (21 loc) · 681 Bytes
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
### 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 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
###