Skip to content

Commit

Permalink
[FIX] swagger tag 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wlwpfh committed Mar 5, 2024
1 parent 744989e commit 2831ac9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
Expand All @@ -23,6 +24,7 @@
@RequiredArgsConstructor
@RequestMapping("/api/v1/cakes")
@SecurityRequirement(name = "Authorization")
@Tag(name = "Cake", description = "소원 결과")
public class CakeController {

private final CakeService cakeService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.sopterm.makeawish.common.ApiResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
Expand All @@ -10,6 +11,7 @@
import static com.sopterm.makeawish.common.message.SuccessMessage.SUCCESS_GET_PGTOKEN;

@RestController
@Tag(name = "Pay", description = "결제")
public class PayController {

@Operation(summary = "카카오페이 결제 준비 후 pg 토큰 발급")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.nio.file.AccessDeniedException;

import com.sopterm.makeawish.dto.cake.CakeCreateRequest;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
Expand All @@ -26,6 +27,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/public")
@Tag(name = "Present", description = "선물하기")
public class PublicController {

private final CakeService cakeService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package com.sopterm.makeawish.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sopterm.makeawish.common.ApiResponse;

@RestController
@Tag(name = "Test", description = "테스트 API")
public class TestController {

@GetMapping("/health")
Expand Down

0 comments on commit 2831ac9

Please sign in to comment.