annotation
-
Swagger AnnotationComputer Science/Swagger 2022. 7. 6. 15:20
@ApiModelProperty(example = "1") private Long matchId; 출력되는 class에서 해당 annotation을 넣어주면 example 값이 변동된다. 위 예시처럼 Long 이지만 String으로 넣어야하며 해당 값이 Long으로 변환되어 보여진다. @ApiResponses({ @ApiResponse(code = 200, message = "!!Success!!"), @ApiResponse(code = 400, message = "Bad Request"), @ApiResponse(code = 500, message = "Internal Server Error") }) 컨트롤러에 등록하는 annotation 각 코드별 의마하는 바를 알려준다. @ApiOperation(v..