-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests.http
34 lines (27 loc) · 891 Bytes
/
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
### This registers a new user
POST http://localhost:8000/users/register
Content-Type: application/json
{
"uuid": "502a4237-ddcd-7ab3-ac03-68587d2c3d65",
"name": "John Doe Horrible",
"password": "password_123",
"email": "[email protected]"
}
### Gets all the users
GET http://localhost:8000/users
### Gets all the users matching Criteria
GET http://localhost:8000/users?limit=1&offset=0
&filters[1].field=name
&filters[1].operator=eq
&filters[1].value=John Doe Horrible
### Get only one user by id
GET http://localhost:8000/users/502a4267-ddcd-4ab3-ac03-68587d2c3d65
### Update a user (Identifiers are inmutable)
PUT http://localhost:8000/users/
Content-Type: application/json
{
"uuid": "502a4267-ddcd-4ab3-ac03-68587d2c3d65",
"name": "Jane Doe Not Especial"
}
### Deletes a user by id
DELETE http://localhost:8000/users/502a4267-ddcd-4ab3-ac03-68587d2c3d65