From 485e149a9c7fad03e7d63fb610128aa9f45e2ff5 Mon Sep 17 00:00:00 2001 From: noobcpuls Date: Wed, 9 Oct 2024 18:18:40 +0900 Subject: [PATCH] =?UTF-8?q?mission:=203=EC=A3=BC=EC=B0=A8=20=EB=AF=B8?= =?UTF-8?q?=EC=85=98(=ED=82=A4=EC=9B=8C=EB=93=9C=20=EC=97=86=EC=9D=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mission/chapter03/mission.md | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 mission/chapter03/mission.md diff --git a/mission/chapter03/mission.md b/mission/chapter03/mission.md new file mode 100644 index 0000000..11887d8 --- /dev/null +++ b/mission/chapter03/mission.md @@ -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