-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
40 lines (35 loc) · 838 Bytes
/
test.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
@endpoint = http://localhost:5000
GET {{endpoint}} HTTP/1.1
x-app-version: 1.0.0
```
# @name ROLE API
POST {{endpoint}}/api/roles HTTP/1.1
x-app-version: 1.0.0
Content-Type: application/json
{
"name": "User",
"default": true,
"permissions": ["READ", "WRITE"]
}
POST {{endpoint}}/api/roles HTTP/1.1
x-app-version: 1.0.0
Content-Type: application/json
{
"name": "Administrator",
"default": false,
"permissions": ["READ", "WRITE", "MODERATE", "ADMIN"]
}
POST {{endpoint}}/api/roles HTTP/1.1
x-app-version: 1.0.0
Content-Type: application/json
{
"name": "Moderator",
"default": false,
"permissions": ["READ", "WRITE", "MODERATE"]
}
PATCH {{endpoint}}/api/roles/7bac2118-220f-432c-b71d-f4b80e1981c6 HTTP/1.1
x-app-version: 1.0.0
Content-Type: application/json
{
"permissions": ["READ", "WRITE", "MODERATE", "ADMIN"]
}