From af21eb32e482d2a886e6230e272b0d6c2b045a58 Mon Sep 17 00:00:00 2001 From: TAEYONG KIM <86272688+YongsHub@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:51:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20token=20reissue=20post=20mapping=20?= =?UTF-8?q?=EB=B0=8F=20docs=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth/controller/AuthController.java | 2 +- src/main/resources/static/docs/index.html | 328 +++++++++--------- .../auth/controller/AuthControllerTest.java | 2 +- 3 files changed, 166 insertions(+), 166 deletions(-) diff --git a/src/main/java/com/ssafy/ssafsound/domain/auth/controller/AuthController.java b/src/main/java/com/ssafy/ssafsound/domain/auth/controller/AuthController.java index 9cdb62c1a..635b29855 100644 --- a/src/main/java/com/ssafy/ssafsound/domain/auth/controller/AuthController.java +++ b/src/main/java/com/ssafy/ssafsound/domain/auth/controller/AuthController.java @@ -57,7 +57,7 @@ public EnvelopeResponse logout( .build(); } - @GetMapping("/reissue") + @PostMapping("/reissue") public EnvelopeResponse reissue( @CookieValue("refreshToken") String refreshToken, HttpServletResponse response) { diff --git a/src/main/resources/static/docs/index.html b/src/main/resources/static/docs/index.html index 76ed411bd..171c78727 100644 --- a/src/main/resources/static/docs/index.html +++ b/src/main/resources/static/docs/index.html @@ -708,7 +708,7 @@

POST /posts?boardId=1 HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 165 +Content-Length: 170 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -2237,7 +2237,7 @@

PATCH /posts/1 HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 145 +Content-Length: 150 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -2411,7 +2411,7 @@

POST /comments?postId=1 HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 67 +Content-Length: 70 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -4951,7 +4951,7 @@

POST /comments/reply?commentId=1&postId=1 HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 69 +Content-Length: 72 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -5103,7 +5103,7 @@

PATCH /comments/1 HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 76 +Content-Length: 79 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -5259,7 +5259,7 @@

POST /auth/callback HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 62 +Content-Length: 65 Host: api.ssafsound.com { @@ -6062,10 +6062,10 @@

7.5. 토큰

7.5.1. HTTP request

@@ -7118,7 +7118,7 @@

POST /members/ssafy-certification HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 67 +Content-Length: 71 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -7310,7 +7310,7 @@

PUT /members/portfolio HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 258 +Content-Length: 268 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -7738,7 +7738,7 @@

PATCH /members/default-information HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 67 +Content-Length: 71 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -8026,7 +8026,7 @@

PATCH /members/public-profile HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 24 +Content-Length: 26 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -8354,7 +8354,7 @@

POST /members/nickname HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 26 +Content-Length: 28 Host: api.ssafsound.com { @@ -8471,7 +8471,7 @@

PATCH /members/nickname HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 26 +Content-Length: 28 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -8596,7 +8596,7 @@

PATCH /members/major HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 23 +Content-Length: 25 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -8714,7 +8714,7 @@

PATCH /members/major-track HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 31 +Content-Length: 33 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -8832,7 +8832,7 @@

POST /recruits HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 1238 +Content-Length: 1257 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue { "category" : "PROJECT", - "recruitEnd" : "2023-11-01", + "recruitEnd" : "2023-11-02", "title" : "[사이드 프로젝트] 공모전 레퍼런스 웹 플랫폼 개발 프로젝트 팀원을 모집합니다.", "content" : "<p>[프로젝트 소개]</p>\n저희 프로젝트는 대학생들의 공모전 경험에 있어 누구나 참고할 레퍼런스를 제공받고, 또 자발적으로 공유할 수 있는 환경을 구축하고자 시작하게 되었습니다! 저희 프로젝트는 아래와 같은 특징을 가지고 있습니다.\n현재 PM 1명, 프론트엔드 개발자 2명, 백엔드 개발자 1명이 있으며, 디자인의 경우 PM이 1차 MVP의 UI/UX를 제작했습니다.\n", "contactURI" : "https://open.kakao.com/o/sA8Kb83b", @@ -9563,7 +9563,7 @@

PATCH /recruits/1 HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 396 +Content-Length: 411 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -10291,7 +10291,7 @@

POST /recruits/1/application HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 117 +Content-Length: 120 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -12389,7 +12389,7 @@

@@ -13605,7 +13605,7 @@

@@ -13822,7 +13822,7 @@

@@ -13988,7 +13988,7 @@

POST /recruits/1/comments HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 79 +Content-Length: 82 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -14080,7 +14080,7 @@

PATCH /recruit-comments/1 HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 33 +Content-Length: 35 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -14338,7 +14338,7 @@

POST /report HTTP/1.1 Content-Type: application/json Content-Type: application/json -Content-Length: 66 +Content-Length: 70 Host: api.ssafsound.com Cookie: accessToken=accessTokenValue @@ -14942,7 +14942,7 @@

diff --git a/src/test/java/com/ssafy/ssafsound/domain/auth/controller/AuthControllerTest.java b/src/test/java/com/ssafy/ssafsound/domain/auth/controller/AuthControllerTest.java index cad443f49..3491f8eb3 100644 --- a/src/test/java/com/ssafy/ssafsound/domain/auth/controller/AuthControllerTest.java +++ b/src/test/java/com/ssafy/ssafsound/domain/auth/controller/AuthControllerTest.java @@ -96,7 +96,7 @@ void reissueByRefreshToken() { restDocs .cookie(REFRESH_TOKEN) - .when().get("/auth/reissue") + .when().post("/auth/reissue") .then().log().all() .assertThat() .apply(document("oauth/reissue",