모델삭제수정
This commit is contained in:
@@ -81,12 +81,12 @@ public class ModelMngApiController {
|
||||
return ApiResponseDto.ok(result);
|
||||
}
|
||||
|
||||
@Operation(summary = "삭제", description = "모델을 삭제 합니다.")
|
||||
@Operation(summary = "모델삭제", description = "모델을 삭제 합니다.")
|
||||
@ApiResponses(
|
||||
value = {
|
||||
@ApiResponse(
|
||||
responseCode = "204",
|
||||
description = "모델 삭제 성공",
|
||||
responseCode = "201",
|
||||
description = "등록 성공",
|
||||
content =
|
||||
@Content(
|
||||
mediaType = "application/json",
|
||||
@@ -102,10 +102,24 @@ public class ModelMngApiController {
|
||||
required = true)
|
||||
@PathVariable
|
||||
String uuid) {
|
||||
return ApiResponseDto.okObject(modelMngService.removeModel(UUID.fromString(uuid)));
|
||||
|
||||
return ApiResponseDto.ok(modelMngService.removeModel(UUID.fromString(uuid)));
|
||||
}
|
||||
|
||||
@Operation(summary = "모델등록")
|
||||
@Operation(summary = "모델등록", description = "모델을 등록 합니다.")
|
||||
@ApiResponses(
|
||||
value = {
|
||||
@ApiResponse(
|
||||
responseCode = "201",
|
||||
description = "등록 성공",
|
||||
content =
|
||||
@Content(
|
||||
mediaType = "application/json",
|
||||
schema = @Schema(implementation = Long.class))),
|
||||
@ApiResponse(responseCode = "400", description = "잘못된 요청 데이터", content = @Content),
|
||||
@ApiResponse(responseCode = "404", description = "코드를 찾을 수 없음", content = @Content),
|
||||
@ApiResponse(responseCode = "500", description = "서버 오류", content = @Content)
|
||||
})
|
||||
@PostMapping
|
||||
public ApiResponseDto<ApiResponseDto.ResponseObj> ModelMgmt(
|
||||
@RequestBody @Valid ModelMngDto.AddReq addReq) {
|
||||
|
||||
Reference in New Issue
Block a user