-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.http
More file actions
37 lines (30 loc) · 787 Bytes
/
client.http
File metadata and controls
37 lines (30 loc) · 787 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
32
33
34
35
36
37
@productsHost = http://localhost:4020
@usersHost = http://localhost:4021
# @productsHost = http://localhost:30020
# @usersHost = http://localhost:30021
# @productsHost = http://micro.local
# @usersHost = http://micro.local
### Health - Users
GET {{usersHost}}/health
Accept: application/json
### List Products
GET {{productsHost}}/api/products
Accept: application/json
### Get Product By Id
GET {{productsHost}}/api/products/1
Accept: application/json
### List Users
GET {{usersHost}}/api/users
Accept: application/json
### Get User By Id
GET {{usersHost}}/api/users/1
Accept: application/json
### Create User
POST {{usersHost}}/api/users
Content-Type: application/json
Accept: application/json
{
"name": "Maria Lopez",
"email": "maria.lopez@duocuc.cl",
"role": "student"
}