visual-chronicle

Get watch history by movie ID

Returns an array of watch history objects that contains only the watch history specified by the movie_id parameter, if it exists.

URL

{server_url}/watchHistory?movie_id=<movie_id_to_search_for>

Params

Parameter name Type Description
movie_id number The ID of the movie resource to which this watch history is assigned

Request headers

None

Request body

None

Return body

[
     {
      "user_id": 2,
      "movie_id": 1,
      "watched_date": "2024-05-24",
      "location": "physical_media",
      "media_type": "Blu-ray",
      "id": "7ba0"
    }
]

Return status

Status value Return status Description
200 Success Requested data returned successfully
404 Error Specified watch history record not found
ECONNREFUSED N/A Service is offline. Start the service and try again.