Skip to content

Commit

Permalink
[feat] #12 swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 committed May 15, 2024
1 parent 002f7d3 commit cf38994
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/sopt/cgv/controller/MovieControllerSwagger.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.sopt.cgv.service.dto.MovieDetailRequestDto;
import org.sopt.cgv.service.dto.TicketCreateRequestDto;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

@Tag(name = "영화 API", description = "영화 관련 API")
public interface MovieControllerSwagger {
Expand All @@ -34,4 +36,12 @@ public interface MovieControllerSwagger {
@Operation(summary = "영화 좋아요 삭제 API")
ResponseEntity unlikeMovie(@PathVariable Long movieId);

@Operation(summary = "영화 예매 API")
@ApiResponses(
value = {
@ApiResponse(responseCode = "201", description = "Ticket added successfully"),
@ApiResponse(responseCode = "404", description = "Theater not found")
})
ResponseEntity buyTicket(@PathVariable Long movieId, @RequestBody TicketCreateRequestDto ticketCreateRequestDto);

}

0 comments on commit cf38994

Please sign in to comment.