-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.http
More file actions
58 lines (44 loc) · 1.22 KB
/
test.http
File metadata and controls
58 lines (44 loc) · 1.22 KB
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
58
### 꿀팁 공유 요청
POST http://localhost:3000/api/v1/tips/share
Accept: application/json
Content-Type: application/json
Authorization: Bearer {your_jwt_token}
{
"title": "집중력 향상 방법",
"content": "포모도로 기법을 사용해 생산성을 높여보세요.",
"category": "productivity"
}
### 팁 저장 요청
POST http://localhost:3000/api/v1/tips/1/save
Accept: application/json
Content-Type: application/json
Authorization: Bearer {your_jwt_token}
### 팁 좋아요 요청
POST http://localhost:3000/api/v1/tips/1/like
Accept: application/json
Content-Type: application/json
Authorization: Bearer {your_jwt_token}
### 팁 댓글 작성 요청
POST http://localhost:3000/api/v1/tips/1/comments
Accept: application/json
Content-Type: application/json
Authorization: Bearer {your_jwt_token}
{
"comment": "좋은 꿀팁입니다! 바로 시도해보겠습니다."
}
### 회원가입
POST http://localhost:3000/api/v1/users/signup
Accept: application/json
Content-Type: application/json
{
"email": "codnjs@example.com",
"password": "Password",
"nickname": "won",
}
###
POST http://localhost:3000/api/v1/login
Content-Type: application/json
{
"email": "codnjs@example.com",
"password": "Password"
}