Skip to content

Commit

Permalink
📝 Api-docs : 해시태그 이름으로 질문글리스트 가져오기 api swagger 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
hainho authored and nyeoni committed Dec 16, 2021
1 parent 026e039 commit 906360d
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 2 deletions.
37 changes: 36 additions & 1 deletion backend/build/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ paths:
$ref: '#/components/schemas/MainPage'
'404':
description: Page doesn't exist
/pages/list/question/hashtag:
/pages/list/question/hashtag/id:
get:
summary: 해시태그 아이디로 질문글 리스트를 반환합니다.
tags:
Expand Down Expand Up @@ -723,6 +723,41 @@ paths:
$ref: '#/components/schemas/MainPage'
'404':
description: Page doesn't exist
/pages/list/question/hashtag/name:
get:
summary: 해시태그 이름으로 질문글 리스트를 반환합니다.
tags:
- page
description: '데이터를 최신순으로 정렬하려면 orderBy = "time", 좋아요 순으로 정렬하려면 "like", 해결되지 않은 질문 리스트를 응답 받으려면 "solving" 사용'
parameters:
- name: pageNumber
in: query
schema:
type: integer
format: int64
example: 1
required: true
- name: hashtagName
in: query
schema:
type: string
example: ft_printf
required: true
- name: orderBy
in: query
schema:
type: string
example: time
required: true
responses:
'200':
description: 페이지 요청 성공
content:
application/json:
schema:
$ref: '#/components/schemas/MainPage'
'404':
description: Page doesn't exist
/pages/list/question/like:
get:
summary: 질문 리스트를 추천순으로 반환합니다.
Expand Down
38 changes: 37 additions & 1 deletion backend/src/swagger/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ paths:
"404":
description: Page doesn't exist

/pages/list/question/hashtag:
/pages/list/question/hashtag/id:
get:
summary: 해시태그 아이디로 질문글 리스트를 반환합니다.
tags:
Expand Down Expand Up @@ -752,6 +752,42 @@ paths:
"404":
description: Page doesn't exist

/pages/list/question/hashtag/name:
get:
summary: 해시태그 이름으로 질문글 리스트를 반환합니다.
tags:
- page
description: 데이터를 최신순으로 정렬하려면 orderBy = "time", 좋아요 순으로 정렬하려면 "like", 해결되지 않은 질문 리스트를 응답 받으려면 "solving" 사용
parameters:
- name: pageNumber
in: query
schema:
type: integer
format: int64
example: 1
required: true
- name: hashtagName
in: query
schema:
type: string
example: ft_printf
required: true
- name: orderBy
in: query
schema:
type: string
example: time
required: true
responses:
"200":
description: 페이지 요청 성공
content:
application/json:
schema:
$ref: "#/components/schemas/MainPage"
"404":
description: Page doesn't exist

/pages/list/question/like:
get:
summary: 질문 리스트를 추천순으로 반환합니다.
Expand Down

0 comments on commit 906360d

Please sign in to comment.