-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
57 lines (37 loc) · 940 Bytes
/
requests.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
56
57
### Find all todos
GET http://localhost:3355/todos
### Create a new todo
POST http://localhost:3355/todos
Content-Type: application/json
{
"title": "아유 오케이?"
}
### Find todo (404)
Get http://localhost:3355/todos/thisIsWrongId
### Find todo (200)
Get http://localhost:3355/todos/181fef7a-a2e0-48bb-a9a3-22bf2cac5777
### --------------------------------
### List all tasks
GET http://localhost:3355/tasks
### Find task
Get http://localhost:3355/tasks/thisIsWrongId
### Sign up
Post http://localhost:3355/auth/signup
content-type: application/json
{
"email": "test12@dummy.com",
"username": "유저이름",
"password": "123456"
}
### Sign in
Post http://localhost:3355/auth/signin
content-type: application/json
{
"email": "test10@dummy.com",
"password": "123456"
}
### Find user
Get http://localhost:3355/auth/whoami
### Log out
Post http://localhost:3355/auth/signout
content-type: application/json