Skip to content

Movies_delete

Luigi Minardi edited this page Mar 3, 2022 · 2 revisions

Return to Movies

Delete movie with given pk

Delete movie with specified pk from the database.

Endpoint: /:pk

Request:

This endpoint need login.

This endpoint is Admin Only.

After beign logged in as an administrator, go to the endpoint and you'll get the response.

If you're using postman or insomnia to check the API remember to put the token of the logged user on the header, as Authorization: Bearer <token>.

Response Body:
Response code: 200
{
	"msg": "Movie with id 3 was deleted."
}