-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAPI.http
58 lines (37 loc) · 1.1 KB
/
API.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
53
54
55
@ENDPOINT=http://localhost:8080/api
### GET USERS
GET {{ENDPOINT}}/users HTTP/1.1
### GET USERS by Offset
GET {{ENDPOINT}}/users?offset=30 HTTP/1.1
### GET USERS by Offset Limit
GET {{ENDPOINT}}/users?offset=30&limit=10 HTTP/1.1
### Get User by USERNAME
GET {{ENDPOINT}}/users/changjoo-park HTTP/1.1
### Get Items
GET {{ENDPOINT}}/items HTTP/1.1
### Get Item By Id
GET {{ENDPOINT}}/items/1 HTTP/1.1
### Get Item By USERNAME
GET {{ENDPOINT}}/users/changjoo-park/items HTTP/1.1
### Get Item By USERNAME and Id
GET {{ENDPOINT}}/users/changjoo-park/items/16 HTTP/1.1
### Get Comments by USERNAME
GET {{ENDPOINT}}/users/changjoo-park/comments HTTP/1.1
### Get Tags
GET {{ENDPOINT}}/tags HTTP/1.1
### Get Tag By TagName
GET {{ENDPOINT}}/tags/illum HTTP/1.1
### Get Items By TagName
GET {{ENDPOINT}}/tags/illum/items HTTP/1.1
### Get Tags By Item Id
GET {{ENDPOINT}}/items/1/tags HTTP/1.1
### Authenticate
POST {{ENDPOINT}}/auth/login HTTP/1.1
Content-Type: application/json
{
"username": "admin",
"password": "password"
}
### Log Out
POST {{ENDPOINT}}/auth/logout HTTP/1.1
Content-Type: application/json