RESTful API - Laravel 8

Routes:


Genre

Index

Description: Displays a list of genres

GET: /public/api/genres

Store

Description: Stores a new genre in the database

POST: /public/api/genres

Show

Description: Displays the specified genre

GET: /public/api/genres/id

Update

Description: Displays the specified genre

PUT: /public/api/genres/{genre}/id

Delete

Description: Removes the specified genre from database

DELETE: /public/api/genres/id

Movie

Index

Description: Displays a list of movie

GET: /public/api/movies

Store

Description: Stores a new movie in the database

POST: /public/api/movies

Show

Description: Displays the specified movie

GET: /public/api/movies/id

Update

Description: Displays the specified movie

PUT: /public/api/movies/{movie}/id

Delete

Description: Removes the specified movie from database

DELETE: /public/api/movies/id