-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
44 lines (37 loc) · 1.32 KB
/
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
35
36
37
38
39
40
41
42
43
44
### Get User By ID
GET http://localhost:8080/api/user/2
Content-Type: application/json
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRob3JpemVkIjp0cnVlLCJleHAiOjE2MzIyMzU0OTAsImlkIjoyLCJpc3MiOjIsInVzZXIiOiJpcEBnbWFpbC5jb20ifQ.g7EITh3ZgpaTcYlKYSzbWoB3AA_Z-m_znMb7TTBFjSM
### Create User
POST http://localhost:8080/api/user
Content-Type: application/json
{
"firtsname": "Jhon",
"lastname": "Doe",
"email": "jdr@gmail.com",
"status": "ACTIVE",
"password": "12345678"
}
### Update User
PUT http://localhost:8080/api/user/4
Content-Type: application/json
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRob3JpemVkIjp0cnVlLCJleHAiOjE2MzIyMzU1NDksImlkIjo0LCJpc3MiOjQsInVzZXIiOiJqZHJAZ21haWwuY29tIn0.jdi0E4vU0U8vA7Q3sqQIW9wOjBMaHFlXceDB7M6sn7s
{
"id": 4,
"firtsname": "Jhonathan",
"lastname": "Doe",
"email": "jde@gmail.com",
"status": "ACTIVE",
"password": "12345678"
}
### Delete User By ID
DELETE http://localhost:8080/api/user/4
Content-Type: application/json
Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRob3JpemVkIjp0cnVlLCJleHAiOjE2MzIyMzU1NDksImlkIjo0LCJpc3MiOjQsInVzZXIiOiJqZHJAZ21haWwuY29tIn0.jdi0E4vU0U8vA7Q3sqQIW9wOjBMaHFlXceDB7M6sn7s
### Login Request
POST http://localhost:8080/api/login
Content-Type: application/json
{
"email": "jdr@gmail.com",
"password": "12345678"
}