-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from BookJamm/feat/place-docs-update
Feat/place docs update
- Loading branch information
Showing
4 changed files
with
297 additions
and
798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,280 @@ | ||
/places: | ||
get: | ||
tags: | ||
- places | ||
summary: 장소 가져오기 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: query | ||
name: category | ||
required: true | ||
schema: | ||
type: string | ||
description: 카테고리 | ||
- in: query | ||
name: sortBy | ||
required: false | ||
schema: | ||
type: string | ||
description: 정렬 기준 | ||
- in: query | ||
name: lat | ||
required: true | ||
schema: | ||
type: string | ||
description: lat | ||
- in: query | ||
name: lon | ||
required: true | ||
schema: | ||
type: string | ||
description: lon | ||
- in: query | ||
name: last | ||
required: true | ||
schema: | ||
type: string | ||
description: 마지막 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
/places/search: | ||
get: | ||
tags: | ||
- places | ||
summary: 장소 검색 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: query | ||
name: keyword | ||
required: true | ||
schema: | ||
type: string | ||
description: 검색어 | ||
- in: query | ||
name: sortBy | ||
required: false | ||
schema: | ||
type: string | ||
description: 정렬 기준 | ||
- in: query | ||
name: lat | ||
required: true | ||
schema: | ||
type: string | ||
description: lat | ||
- in: query | ||
name: lon | ||
required: true | ||
schema: | ||
type: string | ||
description: lon | ||
- in: query | ||
name: last | ||
required: true | ||
schema: | ||
type: string | ||
description: 마지막 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
/places/{placeId}/reviews: | ||
get: | ||
tags: | ||
- places | ||
summary: 장소 리뷰 보기 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: path | ||
name: placeId | ||
required: true | ||
schema: | ||
type: integer | ||
description: 장소 id | ||
- in: query | ||
name: last | ||
required: true | ||
schema: | ||
type: string | ||
description: 마지막 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
post: | ||
tags: | ||
- places | ||
summary: 장소 리뷰 작성하기 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: path | ||
name: placeId | ||
required: true | ||
schema: | ||
type: integer | ||
description: 장소 id | ||
- in: body | ||
name: visitedAt | ||
required: true | ||
schema: | ||
type: integer | ||
description: 방문 날짜 | ||
- in: body | ||
name: contents | ||
required: true | ||
schema: | ||
type: integer | ||
description: 리뷰 내용 | ||
- in: body | ||
name: rating | ||
required: true | ||
schema: | ||
type: integer | ||
description: 별점 | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
/places/{placeId}/activities: | ||
get: | ||
tags: | ||
- places | ||
summary: 장소 활동 보기 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: path | ||
name: placeId | ||
required: true | ||
schema: | ||
type: integer | ||
description: 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
/places/{placeId}/news: | ||
get: | ||
tags: | ||
- places | ||
summary: 장소 소식 보기 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: path | ||
name: placeId | ||
required: true | ||
schema: | ||
type: integer | ||
description: 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
/places/{placeId}/books: | ||
get: | ||
tags: | ||
- places | ||
summary: 장소에 있는 책 목록 보기 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: path | ||
name: placeId | ||
required: true | ||
schema: | ||
type: integer | ||
description: 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
/places/{placeId}: | ||
get: | ||
tags: | ||
- places | ||
summary: 장소 세부 페이지 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: path | ||
name: placeId | ||
required: true | ||
schema: | ||
type: integer | ||
description: 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
/places/{placeId}/bookmarks: | ||
post: | ||
tags: | ||
- places | ||
summary: 장소 북마크 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: path | ||
name: placeId | ||
required: true | ||
schema: | ||
type: integer | ||
description: 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" | ||
delete: | ||
tags: | ||
- places | ||
summary: 장소 북마크 취소 | ||
security: | ||
- bearerAuth: [] | ||
parameters: | ||
- in: path | ||
name: placeId | ||
required: true | ||
schema: | ||
type: integer | ||
description: 장소 id | ||
responses: | ||
"200": | ||
$ref: "./openapi.yaml#/components/responses/successResponse" | ||
"400": | ||
$ref: "./openapi.yaml#/components/responses/BadRequest" | ||
"500": | ||
$ref: "./openapi.yaml#/components/responses/InternalServerError" |
Oops, something went wrong.