Browse Source

Swagger - 세부설명 작성

Test
이학준 2 years ago
parent
commit
cf129a6bdf
  1. 5
      src/main/java/com/palnet/biz/api/acnt/crtfyhp/controller/AcntCrtfyhpController.java
  2. 4
      src/main/java/com/palnet/biz/api/acnt/jwt/controller/JwtAuthenticationController.java

5
src/main/java/com/palnet/biz/api/acnt/crtfyhp/controller/AcntCrtfyhpController.java

@ -3,6 +3,7 @@ package com.palnet.biz.api.acnt.crtfyhp.controller;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
@ -108,6 +109,7 @@ public class AcntCrtfyhpController {
//아이디 찾기 시 인증번호 발송 로직 //아이디 찾기 시 인증번호 발송 로직
@GetMapping(value = "/find/sendForId") @GetMapping(value = "/find/sendForId")
@ApiOperation(value = "아이디 찾기 시 인증번호 발송")
public ResponseEntity<? extends BasicResponse> sendForId(String memberName, String hpno) { public ResponseEntity<? extends BasicResponse> sendForId(String memberName, String hpno) {
Map<String, Object> resultMap = new HashMap<String, Object>(); Map<String, Object> resultMap = new HashMap<String, Object>();
@ -134,6 +136,7 @@ public class AcntCrtfyhpController {
//아이디 찾기 //아이디 찾기
@GetMapping(value = "/find/findUserId") @GetMapping(value = "/find/findUserId")
@ApiOperation(value = "회원 아이디 찾기")
public ResponseEntity<? extends BasicResponse> findUserId(String memberName, String hpno) { public ResponseEntity<? extends BasicResponse> findUserId(String memberName, String hpno) {
Map<String, Object> resultMap = new HashMap<String, Object>(); Map<String, Object> resultMap = new HashMap<String, Object>();
@ -162,6 +165,7 @@ public class AcntCrtfyhpController {
//비밀번호 찾기 시 인증번호 발송 로직 //비밀번호 찾기 시 인증번호 발송 로직
@GetMapping(value = "/find/sendForPw") @GetMapping(value = "/find/sendForPw")
@ApiOperation(value = "비밀번호 찾기 시 인증번호 발송")
public ResponseEntity<? extends BasicResponse> sendForPw(String userId, String hpno) { public ResponseEntity<? extends BasicResponse> sendForPw(String userId, String hpno) {
Map<String, Object> resultMap = new HashMap<String, Object>(); Map<String, Object> resultMap = new HashMap<String, Object>();
@ -189,6 +193,7 @@ public class AcntCrtfyhpController {
@GetMapping(value = "/find/updatePw") @GetMapping(value = "/find/updatePw")
@ApiOperation(value = "비밀번호 찾기 및 업데이트")
public ResponseEntity<? extends BasicResponse> updatePw(String userId, String hpno, String newPw) throws Exception { public ResponseEntity<? extends BasicResponse> updatePw(String userId, String hpno, String newPw) throws Exception {
Map<String, Object> resultMap = new HashMap<String, Object>(); Map<String, Object> resultMap = new HashMap<String, Object>();

4
src/main/java/com/palnet/biz/api/acnt/jwt/controller/JwtAuthenticationController.java

@ -3,6 +3,7 @@ package com.palnet.biz.api.acnt.jwt.controller;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
@ -53,6 +54,7 @@ public class JwtAuthenticationController {
private JwtService service; private JwtService service;
@PostMapping(value = "/login") @PostMapping(value = "/login")
@ApiOperation(value = "로그인")
public ResponseEntity<? extends BasicResponse> createAuthenticationToken(@RequestBody JwtRqModel authenticationRequest) throws Exception { public ResponseEntity<? extends BasicResponse> createAuthenticationToken(@RequestBody JwtRqModel authenticationRequest) throws Exception {
Map<String , Object> resultMap = service.loginProcess(authenticationRequest); Map<String , Object> resultMap = service.loginProcess(authenticationRequest);
@ -75,6 +77,7 @@ public class JwtAuthenticationController {
} }
@GetMapping(value = "/profile/{cstmrSno}") @GetMapping(value = "/profile/{cstmrSno}")
@ApiOperation(value = "로그인한 회원의 정보")
public ResponseEntity<? extends BasicResponse> proflie(@PathVariable int cstmrSno) throws Exception{ public ResponseEntity<? extends BasicResponse> proflie(@PathVariable int cstmrSno) throws Exception{
JwtProfileRsModel result = service.profile(cstmrSno); JwtProfileRsModel result = service.profile(cstmrSno);
@ -114,6 +117,7 @@ public class JwtAuthenticationController {
} }
@GetMapping(value = "/logout/{cstmrSno}") @GetMapping(value = "/logout/{cstmrSno}")
@ApiOperation(value = "로그아웃 한 회원의 정보")
public ResponseEntity<? extends BasicResponse> logout(@PathVariable int cstmrSno) throws Exception{ public ResponseEntity<? extends BasicResponse> logout(@PathVariable int cstmrSno) throws Exception{
// if(cstmrSno == null || !(body.get("cstmrSno") instanceof Integer)) { // if(cstmrSno == null || !(body.get("cstmrSno") instanceof Integer)) {

Loading…
Cancel
Save