Skip to content

Commit

Permalink
refactor: UserCocktailDocumentation 단일 조회, 수정 PathParameter 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
KimGyeong committed Feb 23, 2021
1 parent 4129ec9 commit 0ffd9e4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public static RestDocumentationResultHandler createUserCocktail() {

public static RestDocumentationResultHandler findUserCocktailById() {
return document("UserCocktails/find",
pathParameters(
parameterWithName("id").description("수정할 칵테일 ID")
),
responseFields(
fieldWithPath("id").type(JsonFieldType.NUMBER).description("나만의 레시피 아이디"),
fieldWithPath("name").type(JsonFieldType.STRING).description("나만의 레시피 이름"),
Expand Down Expand Up @@ -78,6 +81,9 @@ public static RestDocumentationResultHandler findUserCocktails() {

public static RestDocumentationResultHandler updateUserCocktails() {
return document("UserCocktails/update",
pathParameters(
parameterWithName("id").description("수정할 칵테일 ID")
),
requestFields(
fieldWithPath("name").type(JsonFieldType.STRING).description("업데이트될 나만의 레시피 이름"),
fieldWithPath("description").type(JsonFieldType.STRING).description("업데이트 될 나만의 레시피 설명"),
Expand Down

0 comments on commit 0ffd9e4

Please sign in to comment.