Download OpenAPI specification:Download
Allow for the runtimeLt and runtimeGt parameters to filter the results; both of these should be able to be used together and by themselves.
| runtimeLt | integer Only retrieve movies with a runtime less than the provided value |
| runtimeGt | integer Only retrieve movies with a runtime greater than the provided value |
{- "movies": [
- {
- "id": 0,
- "title": "string",
- "runtimeMins": 0,
- "createdAt": "string",
- "updatedAt": "string",
- "screenings": [
- {
- "id": 0,
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
]
}Include the ability to create screenings for the movie if the request body has a screenings property. If that property doesn't exist in the request body, just create the movie.
| title | string |
| runtimeMins | integer |
Array of objects (ScreeningPost) |
{- "title": "string",
- "runtimeMins": 0,
- "screenings": [
- {
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string"
}
]
}{- "movie": {
- "id": 0,
- "title": "string",
- "runtimeMins": 0,
- "createdAt": "string",
- "updatedAt": "string",
- "screenings": [
- {
- "id": 0,
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
}{- "movie": {
- "id": 0,
- "title": "string",
- "runtimeMins": 0,
- "createdAt": "string",
- "updatedAt": "string",
- "screenings": [
- {
- "id": 0,
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
}Include the ability to update screenings for the movie if the request body has a screenings property. If that property doesn't exist in the request body, just update the movie.
| title | string |
| runtimeMins | integer |
Array of objects (ScreeningPost) |
{- "title": "string",
- "runtimeMins": 0,
- "screenings": [
- {
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string"
}
]
}{- "movie": {
- "id": 0,
- "title": "string",
- "runtimeMins": 0,
- "createdAt": "string",
- "updatedAt": "string",
- "screenings": [
- {
- "id": 0,
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
}Include the ability to update the contact data for the customer if the request body has a contact property. If that property doesn't exist in the request body, just update the customer.
| name | string |
object (ContactPost) |
{- "name": "string",
- "contact": {
- "phone": "string",
- "email": "string"
}
}{- "customer": {
- "id": 0,
- "name": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "contact": {
- "id": 0,
- "customerId": 0,
- "phone": "string",
- "email": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "tickets": [
- {
- "id": 0,
- "screeningId": 0,
- "customerId": 0,
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
}Include the ability to create screenings for a movie if the request body has a screenings property. If that property doesn't exist in the request body, just create the screen.
| number | integer |
Array of objects (ScreeningPost) |
{- "number": 0,
- "screenings": [
- {
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string"
}
]
}{- "screen": {
- "id": 0,
- "number": 0,
- "createdAt": "string",
- "updatedAt": "string",
- "screenings": [
- {
- "id": 0,
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
]
}
}The response should include the data for the customer, contact details, movie, screening and screen
| screeningId | integer |
| customerId | integer |
{- "screeningId": 0,
- "customerId": 0
}{- "ticket": {
- "id": 0,
- "screening": {
- "id": 0,
- "movieId": 0,
- "screenId": 0,
- "startsAt": "string",
- "createdAt": "string",
- "updatedAt": "string"
}, - "customer": {
- "id": 0,
- "name": "string",
- "createdAt": "string",
- "updatedAt": "string",
- "contact": {
- "id": 0,
- "customerId": 0,
- "phone": "string",
- "email": "string",
- "createdAt": "string",
- "updatedAt": "string"
}
}, - "screen": {
- "id": 0,
- "number": 0,
- "createdAt": "string",
- "updatedAt": "string"
}, - "movie": {
- "id": 0,
- "title": "string",
- "runtimeMins": 0,
- "createdAt": "string",
- "updatedAt": "string"
}
}
}