Skip to content

Commit

Permalink
Merge pull request #36 from NekoGroove01/main
Browse files Browse the repository at this point in the history
[3주차/케리] 워크북 제출합니다.
  • Loading branch information
NekoGroove01 authored Oct 17, 2024
2 parents 4365de3 + 71fe245 commit 37a1dc9
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions mission/chapter03/mission.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
1. 회원 가입 API
- Endpoint: POST /api/users
- Request Body:
```json
{
"username": "string",
"email": "string",
"password": "string"
}
```
- Response: 201 Created
2. 미션 목록 조회 (홈)
- Endpoint: GET /api/missions
- Query Parameters:
- status: "ongoing" | "completed"
- Request Header:
- Authorization: Bearer {token}
- Response: 200 OK
3. 미션 성공 누르기 API
- Endpoint: PUT /api/missions/{mission_id}/complete
- Path Variable: mission_id
- Request Header:
- Authorization: Bearer {token}
- Response: 200 OK
4. 마이 페이지 정보 조회 API (토큰으로 구별)
- Endpoint: GET /api/users/my
- Request Header:
- Authorization: Bearer {token}
- Response: 200 OK
5. 리뷰 작성 API
- Endpoint: POST /api/reviews
- Request Header:
- Authorization: Bearer {token}
- Request Body:
```json
{
"mission_id": "integer",
"store_id": "integer",
"rating": "integer",
"review_text": "string"
}
```
- Response: 201 Created
6. 사용자 포인트 조회 API
- Endpoint: GET /api/users/my/points
- Request Header:
- Authorization: Bearer {token}
- Response: 200 OK
7. 지역별 미션 목록 조회 API
- Endpoint: GET /api/missions/regions/{region_id}
- Path Variable: region_id
- Query Parameters:
- status: "ongoing" | "completed"
- Request Header:
- Authorization: Bearer {token}
- Response: 200 OK
8. 사용자 알림 조회 API
- Endpoint: GET /api/users/my/notifications
- Request Header:
- Authorization: Bearer {token}
- Response: 200 OK

0 comments on commit 37a1dc9

Please sign in to comment.