Modular Routing API (0.0.1)

Download OpenAPI specification:Download

users

Retrieve a list of users

Responses

Response samples

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

Create a user

Request Body schema: application/json
email
string

Responses

Request samples

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

Response samples

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

Get a user by ID

Responses

Response samples

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

Delete a user by ID

Responses

Response samples

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

Update a user by ID

Request Body schema: application/json
email
string

Responses

Request samples

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

Response samples

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

films

Retrieve a list of films

Responses

Response samples

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

Create a film

Request Body schema: application/json
title
string
director
string

Responses

Request samples

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

Response samples

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

Get a film by ID

Responses

Response samples

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

Delete a film by ID

Responses

Response samples

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

Update a film by ID

Request Body schema: application/json
title
string
director
string

Responses

Request samples

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

Response samples

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

EXTENSION Update a film by ID

Every field in the request body is optional, only the fields that are provided in the request body should be updated on the film

Request Body schema: application/json
title
string
director
string

Responses

Request samples

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

Response samples

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

EXTENSION Retrieve a list of films

Filter by a given director

query Parameters
director
string

The case sensitive name of a director

Responses

Response samples

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

books

Retrieve a list of books

Responses

Response samples

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

Create a book

Request Body schema: application/json
title
string
type
string
author
string

Responses

Request samples

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

Response samples

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

Get a book by ID

Responses

Response samples

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

Delete a book by ID

Responses

Response samples

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

Update a book by ID

Request Body schema: application/json
title
string
type
string
author
string

Responses

Request samples

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

Response samples

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

EXTENSION Update a book by ID

Every field in the request body is optional, only the fields that are provided in the request body should be updated on the book

Request Body schema: application/json
title
string
type
string
author
string

Responses

Request samples

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

Response samples

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