Cinema Booking API - Core Criteria (0.0.1)

Download OpenAPI specification:Download

movies

Retrieve a list of movies

The screenings related to them should be included in the response data.

Responses

Response samples

Content type
application/json
{
  • "movies": [
    ]
}

Create a movie

Request Body schema: application/json
title
string
runtimeMins
integer

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "runtimeMins": 0
}

Response samples

Content type
application/json
{
  • "movie": {
    }
}

Retrieve a movie by ID

The screenings related to it should be included in the response body.

Responses

Response samples

Content type
application/json
{
  • "movie": {
    }
}

Update a movie

Request Body schema: application/json
title
string
runtimeMins
integer

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "runtimeMins": 0
}

Response samples

Content type
application/json
{
  • "movie": {
    }
}

customers

Update a customer

The customer's contact details should be included in the response data.

Request Body schema: application/json
name
string

Responses

Request samples

Content type
application/json
{
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "customer": {
    }
}

screens

Create a screen

Request Body schema: application/json
number
integer

Responses

Request samples

Content type
application/json
{
  • "number": 0
}

Response samples

Content type
application/json
{
  • "screen": {
    }
}