v1

latestOpenAPI 3.1.02026-07-176914.2 KB

Get a movie by ID

Retrieve a single movie by its ID

get/movies/{id}

Path parameters

idstring required

Movie ID

Response

Movie found

statusinteger required

Response status code

errorstring nullable

Error message if an error occurred, otherwise null

Example response

{
  "status": 200,
  "data": {
    "id": 1,
    "name": "Inception",
    "year": 2010,
    "rating": 7.5,
    "director": "Christopher Nolan"
  }
}