-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.http
More file actions
43 lines (34 loc) · 1.46 KB
/
Copy pathrequest.http
File metadata and controls
43 lines (34 loc) · 1.46 KB
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
GET http://localhost:8080/api/status HTTP/1.1
###
POST http://localhost:8080/api/user/auth HTTP/1.1
content-type: application/json
{
"name": "User test",
"email": "testuser@gmail.com",
"password": 123456
}
###
GET http://localhost:8080/api/user/testuser@gmail.com HTTP/1.1
content-type: application/json
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoVXNlciI6eyJpZCI6MSwibmFtZSI6IlVzZXIgdGVzdCIsImVtYWlsIjoidGVzdHVzZXJAZ21haWwuY29tIn0sImlhdCI6MTY3NDE4NjcxMiwiZXhwIjoxNjc0MjczMTEyfQ.3IOUIgWLSHUTCzL4EIM-2SMM8XOF4LowCwQOjmFRQPs
###
POST http://localhost:8080/api/user/register HTTP/1.1
content-type: application/json
{
"name": "User test",
"email": "testuser@gmail.com",
"password": "123456"
}
###
PATCH http://localhost:8080/api/user/ HTTP/1.1
content-type: application/json
Authorization: token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoVXNlciI6eyJpZCI6MywibmFtZSI6IlVzZXIgdGVzdCIsImVtYWlsIjoidGVzdHVzZXJAZ21haWwuY29tIn0sImlhdCI6MTY3NTEzMTQ1OSwiZXhwIjoxNjc1MjE3ODU5fQ.ygFCAajfQ4FHvZdP3UVaS3eQ2dQUSQabIcj63rRyOGg
{
"name": "User update",
"email": "updateuser@gmail.com",
"password": "654321"
}
###
DELETE http://localhost:8080/api/user/delete HTTP/1.1
content-type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoVXNlciI6eyJpZCI6MSwibmFtZSI6IlVzZXIgdGVzdCIsImVtYWlsIjoidGVzdHVzZXJAZ21haWwuY29tIn0sImlhdCI6MTY3NTY1NzQxMCwiZXhwIjoxNjc1NzQzODEwfQ.IZjHWx_y7_Atm-vnxy8vRHd-rSXzXMMgzBVQSZz2JKU