Skip to content

Commit

Permalink
refactor: swagger path parameter 직관적으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ibaesuyeon committed Dec 8, 2023
1 parent 133f72d commit 74375f8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public ResponseEntity<SuccessResponse<List<CompensationClaimResponse>>> getAllCo
description = "고객ID로 청구 내역(리스트) 반환"),

})
@GetMapping("/{id}")
@GetMapping("/{customerId}")
public ResponseEntity<SuccessResponse<List<CompensationClaimResponse>>> getCompensationClaim(
@Parameter(description = "고객 id", in = ParameterIn.PATH)
@PathVariable("id") Long customerId) {
@PathVariable("customerId") Long customerId) {
return SuccessResponse.of(
compensationClaimService.getCompensationClaim(customerId)
).asHttp(HttpStatus.OK);
Expand Down Expand Up @@ -85,10 +85,10 @@ public ResponseEntity<SuccessResponse<CompensationClaimResponse>> getCompensatio
description = "CC001: id에 해당하는 청구 내역을 찾을 수 없습니다.",
content = @Content(schema = @Schema(hidden = true)))
})
@GetMapping("/{id}/document")
@GetMapping("/{ccid}/document")
public ResponseEntity<InputStreamResource>
getSubscription(@Parameter(description = "청구 id", in = ParameterIn.PATH)
@PathVariable("id") Long ccid) {
@PathVariable("ccid") Long ccid) {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_OCTET_STREAM);
return ResponseEntity.ok()
Expand Down

0 comments on commit 74375f8

Please sign in to comment.