-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.http
52 lines (40 loc) · 1.03 KB
/
client.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
### Get Link by Code
GET http://localhost:3000/pmdev
### Get Links by User
GET http://localhost:3000/api/links/9f422aef-b683-4a75-8da5-a3a658277908
### Create Link
post http://localhost:3000/api/links
Content-Type: application/json
{
"code": "pmdev",
"url": "https://soupaulodev.com.br",
"userId": "9f422aef-b683-4a75-8da5-a3a658277908"
}
### Get Metrics by User
GET http://localhost:3000/api/metrics/9f422aef-b683-4a75-8da5-a3a658277908
### User Signup
post http://localhost:3000/api/auth/signup
Content-Type: application/json
{
"name": "Paulo Marques",
"email": "pm@pm.com",
"password": "123456",
"confirmPassword": "123456"
}
### User Login
post http://localhost:3000/api/auth/login
Content-Type: application/json
{
"email": "pm@pm.com",
"password": "123456"
}
### User Logout
delete http://localhost:3000/api/auth/logout/
### User Update
patch http://localhost:3000/api/users/9f422aef-b683-4a75-8da5-a3a658277908
Content-Type: application/json
{
"name": "Paulo Marques",
"email": "pm@pm.com",
"password": "123456"
}