From 906360d655490e67348c7f0a52dd8cada8d1f796 Mon Sep 17 00:00:00 2001 From: hainho Date: Mon, 13 Dec 2021 22:53:43 +0900 Subject: [PATCH] =?UTF-8?q?:memo:=20Api-docs=20:=20=ED=95=B4=EC=8B=9C?= =?UTF-8?q?=ED=83=9C=EA=B7=B8=20=EC=9D=B4=EB=A6=84=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=A7=88=EB=AC=B8=EA=B8=80=EB=A6=AC=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EA=B0=80=EC=A0=B8=EC=98=A4=EA=B8=B0=20api=20swagger=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/build/swagger.yaml | 37 ++++++++++++++++++++++++++++++- backend/src/swagger/openapi.yaml | 38 +++++++++++++++++++++++++++++++- 2 files changed, 73 insertions(+), 2 deletions(-) diff --git a/backend/build/swagger.yaml b/backend/build/swagger.yaml index 4a0c561b..f41d856b 100644 --- a/backend/build/swagger.yaml +++ b/backend/build/swagger.yaml @@ -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: @@ -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: 질문 리스트를 추천순으로 반환합니다. diff --git a/backend/src/swagger/openapi.yaml b/backend/src/swagger/openapi.yaml index 92eb4bd8..c1e4dde0 100644 --- a/backend/src/swagger/openapi.yaml +++ b/backend/src/swagger/openapi.yaml @@ -715,7 +715,7 @@ paths: "404": description: Page doesn't exist - /pages/list/question/hashtag: + /pages/list/question/hashtag/id: get: summary: 해시태그 아이디로 질문글 리스트를 반환합니다. tags: @@ -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: 질문 리스트를 추천순으로 반환합니다.