Skip to content

Commit

Permalink
feat: (#66) Swagger 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 committed Jul 18, 2023
1 parent 8c2cd7b commit aa666cb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public ResponseEntity<List<CategoryResponse>> getAllCategories() {
return ResponseEntity.status(HttpStatus.OK).body(categories);
}

@Operation(summary = "선호 카테고리 추가하기", description = "선호하는 카테고리를 선호 카테고리 목록에 추가한다.")
@ApiResponse(responseCode = "201", description = "추가 성공")
@PostMapping("/{categoryId}/like")
public ResponseEntity<Void> addFavoriteCategory(final Member member, final Long categoryId) {
categoryService.addFavoriteCategory(member, categoryId);
Expand Down

0 comments on commit aa666cb

Please sign in to comment.