-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Alpha-mon/27-revise-swagger
#27 - chore: swagger 문서 수정
- Loading branch information
Showing
4 changed files
with
47 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...rg/ai/roboadvisor/domain/community/swagger_annotation/post/delete/delete_BAD_REQUEST.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.ai.roboadvisor.domain.community.swagger_annotation.post.delete; | ||
|
||
import io.swagger.v3.oas.annotations.media.Content; | ||
import io.swagger.v3.oas.annotations.media.ExampleObject; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import org.ai.roboadvisor.global.common.dto.SuccessApiResponse; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target({ElementType.METHOD}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Inherited | ||
@ApiResponse(responseCode = "400", description = "게시글 번호가 잘못 입력된 경우, 혹은 존재하지 않는 경우", | ||
content = @Content(schema = @Schema(implementation = SuccessApiResponse.class), | ||
examples = | ||
@ExampleObject(name = "example", | ||
description = "게시글 번호가 잘못 입력된 경우, 혹은 존재하지 않는 경우 예시", | ||
value = """ | ||
{ | ||
"code": 400, | ||
"message": "요청하신 게시글 id가 존재하지 않습니다.", | ||
"data": null | ||
} | ||
""" | ||
) | ||
|
||
)) | ||
public @interface delete_BAD_REQUEST { | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters