blob: 00fca50ab054ed044cf3ff0696358a60ae35153d (
plain) (
blame)
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
|
@ENDPOINT=http://localhost:8080/api
# <- @character.special
# ^^^^^^^ @variable
# ^ @operator
# ^^^^^^^^^^^^^^^^^^^^^^^^^ @string
### GET USERS
GET {{ENDPOINT}}/users HTTP/1.1
# ^^ @punctuation.bracket
# ^^^^^^^^ @variable
# ^^ @punctuation.bracket
# ^^^^^^ @string.special.url
# ^^^^^^^^ @string.special
### GET USERS by Offset
GET {{ENDPOINT}}/users?offset=30 HTTP/1.1
# <- @function.method
### POST login
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
# ^^^^^^^^^^ @constant
# ^ @punctuation.delimiter
# vim: ft=http
|