From 8eda72e5c7b7c145359bc45d6ff852bd3b2b0050 Mon Sep 17 00:00:00 2001 From: yjhss <20211420@sungshin.ac.kr> Date: Sat, 15 Feb 2025 04:23:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20swagger=20api=20=EB=AC=B8=EC=84=9C?= =?UTF-8?q?=EC=97=90=20=ED=82=A4=EC=9B=8C=EB=93=9C/=EB=89=B4=EC=8A=A4=20ap?= =?UTF-8?q?i=20=EC=88=98=EC=A0=95=20=EC=82=AC=ED=95=AD=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/swagger-output.json | 67 ++++++++++++++++++++++++++++------------- 1 file changed, 46 insertions(+), 21 deletions(-) diff --git a/src/swagger-output.json b/src/swagger-output.json index 8266a7f..118ac1b 100644 --- a/src/swagger-output.json +++ b/src/swagger-output.json @@ -487,19 +487,19 @@ } } }, - "/api/articles/count/{keyword}": { + "/api/articles/count/total": { "get": { "tags": ["키워드&뉴스"], - "summary": "키워드 별 기사 개수 조회", - "description": "해당 키워드에 대한 기사들의 전체 개수와 각 언론사 별 개수를 제공합니다.", + "summary": "키워드 별 전체 기사 개수 조회", + "description": "", "parameters": [ { - "name": "keyword", - "in": "path", - "required": true, + "name": "keywords", + "in": "query", "schema": { "type": "string" - } + }, + "example": "대통령, 트럼프, 정치" } ], "responses": { @@ -509,8 +509,33 @@ "400": { "description": "Bad Request" }, - "404": { - "description": "Not Found" + "500": { + "description": "Internal Server Error" + } + } + } + }, + "/api/articles/list": { + "get": { + "tags": ["키워드&뉴스"], + "summary": "특정 키워드(들)에 대한 언론사 별 기사 목록 조회 (list?keywords=a,b,c)", + "description": "", + "parameters": [ + { + "name": "keywords", + "in": "query", + "schema": { + "type": "string" + }, + "example": "대통령, 트럼프, 정치" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request" }, "500": { "description": "Internal Server Error" @@ -518,19 +543,19 @@ } } }, - "/api/articles/{keyword}": { + "/api/articles/count": { "get": { "tags": ["키워드&뉴스"], - "summary": "키워드 별 전체 기사 목록 조회", - "description": "해당 키워드에 대한 모든 기사 목록을 제공합니다.", + "summary": "키워드별 기사 개수 조회 (count?keywords=a,b,c)", + "description": "", "parameters": [ { - "name": "keyword", - "in": "path", - "required": true, + "name": "keywords", + "in": "query", "schema": { "type": "string" - } + }, + "example": "대통령, 트럼프, 정치" } ], "responses": { @@ -549,8 +574,8 @@ "/api/articles/{keyword}/{company}": { "get": { "tags": ["키워드&뉴스"], - "summary": "키워드 별 특정 언론사의 기사 목록 조회", - "description": "해당 키워드에 대한 특정 언론사의 기사 목록을 제공합니다.", + "summary":"특정 키워드에 대한 언론사 별 기사 목록 조회", + "description": "", "parameters": [ { "name": "keyword", @@ -588,8 +613,8 @@ "/api/keywords": { "get": { "tags": ["키워드&뉴스"], - "summary": "키워드 목록 조회", - "description": "인기 키워드 50개를 제공합니다.", + "summary": "전체 키워드 50개 조회", + "description": "", "responses": { "200": { "description": "OK" @@ -616,4 +641,4 @@ "BearerAuth": [] } ] -} +} \ No newline at end of file