-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[승수]Chapter 6. API URL의 설계 & 프로젝트 세팅 ✨ Chapter06
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
### 명세서 | ||
|
||
- 홈 화면 | ||
- API Endpoint: GET users/home | ||
- 마이 페이지 리뷰 작성 | ||
- API Endpoint: POST users/mypage/reviews/add-review | ||
- Request Body | ||
|
||
{ | ||
|
||
“add-photo”: 1 | ||
|
||
“photo”: “사진링크1” | ||
|
||
“star”: 4.5 | ||
|
||
“review”: “적당히 맛있어요”Authorization : accessToken (String) | ||
|
||
} | ||
|
||
- Request Header: Authorization : accessToken (String) | ||
- 미션 목록 조회 | ||
- API Endpoint: GET missons/{user-id} | ||
- Request Header: Authorization : accessToken (String) | ||
- 미션 성공 누르기 | ||
- API Endpoint: PATCH missons/{user-id}/success | ||
- Request Header: Authorization : accessToken (String) | ||
- 회원가입하기 | ||
- API Endpoint: POST users/ | ||
- Request Body | ||
|
||
{ | ||
|
||
“name”: “jaemin” | ||
|
||
“sex”: “남” | ||
|
||
“birth”: 20030718” | ||
|
||
“address”: “숭실대” | ||
|
||
} |