Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3주차/케리] 워크북 제출합니다. #36

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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