Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] 영화 예매하기 API 구현 #15

Merged
merged 16 commits into from
May 16, 2024
Merged

[feat] 영화 예매하기 API 구현 #15

merged 16 commits into from
May 16, 2024

Conversation

kgy1008
Copy link
Contributor

@kgy1008 kgy1008 commented May 15, 2024

Related Issue 📌

Description ✔️

영화 예매하기 api 구현

@PostMapping("/{movieId}/tickets")
public ResponseEntity buyTicket(
@PathVariable Long movieId,
@RequestBody TicketCreateRequestDto ticketCreateRequestDto
) {
return ResponseEntity.status(HttpStatus.CREATED)
.header("Location", TicketService.buyTicket(movieId, ticketCreateRequestDto))
.build();
}

이것도 hearts랑 마찬가지로 굳이 새로운 Controller를 만들 필요가 없다고 생각했는데... 상준오비의 생각이 궁금합니다

image

@kgy1008 kgy1008 self-assigned this May 15, 2024
@kgy1008 kgy1008 merged commit 4ca73f8 into develop May 16, 2024
1 check passed
@kgy1008 kgy1008 deleted the feat/12 branch May 16, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 영화 예매하기 API 구현
1 participant