Skip to content

Commit

Permalink
Merge pull request #27 from SSUMC-6th/seungsu/#6
Browse files Browse the repository at this point in the history
[승수]Chapter 6. API URL의 설계 & 프로젝트 세팅 ✨ Chapter06
  • Loading branch information
sseongeun authored May 21, 2024
2 parents d31139e + 57faee4 commit ec94163
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/mission/chapter6/REST-API
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”: “숭실대”

}

0 comments on commit ec94163

Please sign in to comment.