Newer
Older
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
### Login
POST http://localhost:8080/login HTTP/1.1
Content-Type: application/json
{
"username": "admin",
"password": "admin"
}
### Create a new user
POST http://localhost:8080/user HTTP/1.1
Content-Type: application/json
{
"givenName": "Bruce",
"familyName": "Wayne",
"username": "bat",
"password": "1234"
}
### Get all users
GET http://localhost:8080/users HTTP/1.1
### Get specific user
GET http://localhost:8080/user/1 HTTP/1.1
### Update specific user
PUT http://localhost:8080/user/1 HTTP/1.1
Content-Type: application/json
{
"givenName": "Selina",
"familyName": "Kyle"
}
### Delete specific user
DELETE http://localhost:8080/user/1 HTTP/1.1
### Logout
POST http://localhost:8080/logout HTTP/1.1