Skip to content

Commit

Permalink
Mission: Modify week3 mission (after week3 study)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjiinaaa committed Oct 11, 2024
1 parent 034ebeb commit 6ca81a7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 9 deletions.
20 changes: 20 additions & 0 deletions keyword/chapter03/keyword.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,23 @@
2. HTTP API 클라이언트를 설정 : 이 도구를 사용하면 수신된 API 키를 사용하여 API 요청을 쉽게 구성 가능
3. API 클라이언트가 없는 경우 API 설명서를 참조하여 브라우저에서 요청을 직접 구성
4.API 구문에 파악 후, 코드에서 이를 사용하기 시작

https://dev-cool.tistory.com/32

https://cocoon1787.tistory.com/514?category=925946

- HTTP Header 구조
- [https://aday7.tistory.com/entry/Web-HTTP-Header-구조-Request-headerResponse-header](https://aday7.tistory.com/entry/Web-HTTP-Header-%EA%B5%AC%EC%A1%B0-Request-headerResponse-header)
- Status Code
- https://sanghaklee.tistory.com/61
- 객체 자료형
- https://sweets1327.tistory.com/61
- https://limsungju.tistory.com/6
- JSON
- https://developer.mozilla.org/ko/docs/Learn/JavaScript/Objects/JSON
- [https://jinhos-devlog.tistory.com/entry/Chapter-6-API-URL-설계-프로젝트-세팅하기#✒️ 3. API Endpoint-1](https://jinhos-devlog.tistory.com/entry/Chapter-6-API-URL-%EC%84%A4%EA%B3%84-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%EC%84%B8%ED%8C%85%ED%95%98%EA%B8%B0#%E2%9C%92%EF%B8%8F%203.%20API%20Endpoint-1)
- REST API 모범 사례
- https://www.freecodecamp.org/korean/news/rest-api-mobeom-sarye-rest-endeupointeu-seolgye-yesi/
- https://velog.io/@wo_ogie/restful-api-design#pagination
-
- [https://velog.io/@chchaeun/인증과](https://velog.io/@chchaeun/%EC%9D%B8%EC%A6%9D%EA%B3%BC)
40 changes: 31 additions & 9 deletions mission/chapter03/mission.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@

- 홈 화면 (지역별 미션 조회)
- API Endpoint : GET /mission/area/{areaId}
- Path Variable
- areaId
- Query String
- ?sort=createdAt :생성 시간 기준으로 정렬)
- Request Header
- Authorization : accessToken
- Authorization : Bearer {accessToken}
- Request Body
- GET 요청은 리소스 조회에 관한 메소드이기에 서버에 넣을 내용이 없음.
- Status Code : 200 OK / 400 Bad Requset
- 마이페이지 리뷰 작성
- API Endpoint : POST /review/{reviewId}
- Path Variable
- reviewId
- Request Body
```json
{
Expand All @@ -18,22 +26,36 @@
}
```
- Request Header
- Authorization : accessToken
- Authorization : Bearer {accessToken}
- Request Body
- GET 요청은 리소스 조회에 관한 메소드이기에 서버에 넣을 내용이 없음.
- Status Code: 201 Created / 400 Bad Requset
- 미션 목록 조회(진행 중, 진행 완료)
- API Endpoint : GET /mission
- Qurey String
- Status : Ongoing || Completed
- Query String
- ? ongoing | ?completed (상태 변경)
- ?sort=createdAt :생성 시간 기준으로 정렬)
- Request Header
- Authorization : accessToken
- Authorization : Bearer {accessToken}
- Request Body
- GET 요청은 리소스 조회에 관한 메소드이기에 서버에 넣을 내용이 없음.
- Status Code : 200 OK / 400 Bad Requset
- 미션 성공 누르기
- API Endpoint : GET /mission/{missionId}/complete
- API Endpoint : PUT /mission/{missionId}/complete
- Path Variable
- missionId
- Request Header
- Authorization : accessToken
- Authorization : Bearer {accessToken}
- Request Body
```json
{
"Rating": 4.5,
"Text": "String"
}
```
- Status Code : 200 OK / 400 Bad Requset
- 회원 가입 하기
- API Endpoint : GET /users
- API Endpoint : POST /users
- Request Body
```json
{
Expand All @@ -43,7 +65,7 @@
"Gender": "String",
"Brithday": "String",
"Address": "String",
"PreferFood": "String"
"PreferFood": ["String"]
}
```
- Status Code : 201 Created / 400 Bad Requset

0 comments on commit 6ca81a7

Please sign in to comment.