Zoom
Kizspy.me
{
"id": "ObjectId",
"name": "String",
"position": "address, city",
"showtimes": [
{
"showtimeId": "ObjectId",
"moviesTitle": "String",
"duration": Number,
"startTime": "DD/MM/YYYY HH:mm",
"room": "String",
"seats": [
{ "seatNumber": "String", "status": "String"}
FPTUAN
o Error Responses:
■ 500 Internal Server Error: Server error with message.
Question 4 (2.5 points): Implement POST /api/tickets
Objective: Implement an API endpoint to create a ticket for a user, validate seat
availability, update showtime seat statuses, and calculate the total price, ensuring robust
+ 100%
Close