Get a list of movies for a character

GET /characters/{characterId}/movies

Get a list of movies for a character

Path parameters

  • characterId string Required

    Identifier of the character

    Format should match the following pattern: ^[A-Za-z0-9\\-]{1,100}$.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • movieId string

      Movie identifier

      Minimum length is 1, maximum length is 100. Format should match the following pattern: ^[A-Za-z0-9\\-]{1,100}$.

    • title string

      Title of the movie

    • year integer

      Year that the movie is released

    • category string

      Category of the movie

    • budget string

      Budget in free text

    • boxOffice string

      Box office revenue

    • Additional properties are NOT allowed
  • 400 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 401 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 403 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 404 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 422 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 500 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 502 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
  • 504 application/json

    Default error response

    Hide response attribute Show response attribute object
    • message string Required
GET /characters/{characterId}/movies
curl \
 -X GET http://api.example.com/characters/{characterId}/movies \
 -H "Authorization: $API_KEY"
Response examples (200)
[
  {
    "movieId": "string",
    "title": "string",
    "year": 42,
    "category": "string",
    "budget": "string",
    "boxOffice": "string"
  }
]
Response examples (400)
{
  "message": "Error message"
}
Response examples (401)
{
  "message": "Error message"
}
Response examples (403)
{
  "message": "Error message"
}
Response examples (404)
{
  "message": "Error message"
}
Response examples (422)
{
  "message": "Error message"
}
Response examples (500)
{
  "message": "Error message"
}
Response examples (502)
{
  "message": "Error message"
}
Response examples (504)
{
  "message": "Error message"
}