Skip to content

Commit

Permalink
feat: (#68) Swagger 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaiaiai1 committed Jul 19, 2023
1 parent 247ed8f commit a8b6aab
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class CategoryController {

private final CategoryService categoryService;

@Operation(summary = "카테고리 조회하기", description = "전체 카테고리 목록을 조회한다.")
@Operation(summary = "카테고리 목록 조회하기", description = "전체 카테고리 목록을 조회한다.")
@ApiResponse(responseCode = "200", description = "조회 성공")
@GetMapping("/guest")
public ResponseEntity<List<CategoryResponse>> getAllCategories() {
Expand Down Expand Up @@ -58,6 +58,9 @@ public ResponseEntity<Void> removeFavoriteCategory(final Member member, @PathVar
return ResponseEntity.status(HttpStatus.NO_CONTENT).build();
}


@Operation(summary = "회원으로 모든 카테고리 목록 조회하기", description = "회원의 선호하는 카테고리와 전체 카테고리 목록을 조회한다.")
@ApiResponse(responseCode = "200", description = "조회 성공")
@GetMapping
public ResponseEntity<List<CategoryResponse>> getAllCategories(final Member member) {
List<CategoryResponse> categories = categoryService.getAllCategories(member);
Expand Down

0 comments on commit a8b6aab

Please sign in to comment.