Skip to content

Commit

Permalink
feat: 스웨거 간단히 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Combi153 committed Feb 22, 2024
1 parent 1e38f44 commit f47efbf
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,30 @@ package com.petqua.presentation.order

import com.petqua.application.order.OrderService
import com.petqua.application.order.dto.SaveOrderResponse
import com.petqua.common.config.ACCESS_TOKEN_SECURITY_SCHEME_KEY
import com.petqua.domain.auth.Auth
import com.petqua.domain.auth.LoginMember
import com.petqua.presentation.order.dto.SaveOrderRequest
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.responses.ApiResponse
import io.swagger.v3.oas.annotations.security.SecurityRequirement
import io.swagger.v3.oas.annotations.tags.Tag
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@Tag(name = "Order", description = "주문 관련 API 명세")
@SecurityRequirement(name = ACCESS_TOKEN_SECURITY_SCHEME_KEY)
@RequestMapping("/orders")
@RestController
class OrderController(
private val orderService: OrderService,
) {

@Operation(summary = "주문 생성 API", description = "주문을 생성합니다")
@ApiResponse(responseCode = "200", description = "주문 생성 성공")
@PostMapping
fun save(
@Auth loginMember: LoginMember,
Expand Down

0 comments on commit f47efbf

Please sign in to comment.