Removes the movie you identify in the id
parameter from the movie resource, if the movie exists.
{server_url}/movies/{id}
Parameter name | Type | Description |
---|---|---|
id |
number | The record ID of the movie to delete |
Content-Type: application/json
DELETE {server_url}/movies/{id}
Returns the movie you deleted from the movie resource
[
{
"id": 7,
"title": "Fight Club",
"release_year": 1999,
"director": "David Fincher"
}
]
Status value | Return status | Description |
---|---|---|
200 | Success | Action completed successfully |
202 | Accepted | Action has been queued |
204 | No Content | Action has been performed, but the response does not include an entity |
404 | Error | Specified movie record not found |
ECONNREFUSED | N/A | Service is offline. Start the service and try again. |