Skip to content

Commit e7647bd

Browse files
committed
chore: 개발용 대여 API 스웨거에서 숨김 처리
1 parent fe66a5f commit e7647bd

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

src/main/kotlin/site/billilge/api/backend/domain/payer/controller/AdminPayerController.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ class AdminPayerController(
2020
override fun getAllPayers(
2121
@ModelAttribute pageableCondition: PageableCondition,
2222
@ModelAttribute searchCondition: SearchCondition,
23-
// @RequestParam(required = false, defaultValue = "0") pageNo: Int,
24-
// @RequestParam(required = false, defaultValue = "10") size: Int,
25-
// @RequestParam(required = false, defaultValue = "enrollmentYear") criteria: String
2623
): ResponseEntity<PayerFindAllResponse> {
2724
return ResponseEntity.ok(payerService.getAllPayers(pageableCondition, searchCondition))
2825
}

src/main/kotlin/site/billilge/api/backend/domain/rental/controller/RentalApi.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import io.swagger.v3.oas.annotations.parameters.RequestBody
55
import io.swagger.v3.oas.annotations.responses.ApiResponse
66
import io.swagger.v3.oas.annotations.responses.ApiResponses
77
import io.swagger.v3.oas.annotations.tags.Tag
8+
import org.springframework.http.HttpStatus
89
import org.springframework.http.ResponseEntity
910
import org.springframework.security.core.annotation.AuthenticationPrincipal
1011
import org.springframework.web.bind.annotation.PathVariable
12+
import org.springframework.web.bind.annotation.PostMapping
1113
import org.springframework.web.bind.annotation.RequestParam
1214
import site.billilge.api.backend.domain.rental.dto.request.RentalHistoryRequest
1315
import site.billilge.api.backend.domain.rental.dto.response.RentalHistoryFindAllResponse
@@ -93,4 +95,10 @@ interface RentalApi {
9395
fun getReturnRequiredHistory(
9496
@AuthenticationPrincipal userAuthInfo: UserAuthInfo,
9597
) : ResponseEntity<ReturnRequiredItemFindAllResponse>
98+
99+
@Operation(hidden = true)
100+
fun createDevRental(
101+
@AuthenticationPrincipal userAuthInfo: UserAuthInfo,
102+
@org.springframework.web.bind.annotation.RequestBody rentalHistoryRequest: RentalHistoryRequest
103+
): ResponseEntity<Void>
96104
}

src/main/kotlin/site/billilge/api/backend/domain/rental/controller/RentalController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class RentalController(
2828
}
2929

3030
@PostMapping("/dev")
31-
fun createDevRental(
31+
override fun createDevRental(
3232
@AuthenticationPrincipal userAuthInfo: UserAuthInfo,
3333
@RequestBody rentalHistoryRequest: RentalHistoryRequest
3434
): ResponseEntity<Void> {

0 commit comments

Comments
 (0)