-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.http
More file actions
42 lines (35 loc) · 940 Bytes
/
request.http
File metadata and controls
42 lines (35 loc) · 940 Bytes
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
POST http://localhost:5000/api/register
Content-Type: application/json
{
"username": "al",
"password": "ok"
}
###
POST http://localhost:5000/api/login
Content-Type: application/json
{
"username": "hello",
"password": "world"
}
###
GET http://localhost:5000/api/whoami
Content-Type: application/json
authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImlhdCI6MTcyMTkxNjcyNiwiZXhwIjoxNzIxOTIwMzI2fQ.vtDr3mpi_af35PwDZhWpnzyz0CydoQK45foJmBIlqJM
###
POST http://localhost:5000/api/refresh
Content-Type: application/json
{
"refreshToken": "778c5529b8d3ea359b0912fb44c3017995baf7e48f0fb0869476095754fde7fe7e8e06b27942862c956ea0c15894f441c05aaf96c4d3b8a0548821701aa4c968"
}
###
GET http://localhost:5000/api/todos
###
GET http://localhost:5000/api/todos/2
###
POST http://localhost:5000/api/todos
Content-Type: application/json
{
"text": "hello world"
}
###
DELETE http://localhost:5000/api/todos/1