This API is used to maintain movies information
- Install node modules ->
npm install
- To start server ->
npm start
- To run testcase ->
npm test
Endpoint → http://localhost:3000/moviemania/api/
Public Documentation has been made available. Here is a button to import the same and test.
HTTP method |
Route |
Description |
post |
/users/register |
To register user |
HTTP method |
Route |
Description |
post |
/auth |
To authenticate user |
HTTP method |
Route |
Description |
get |
/movies |
get all movies |
get |
/movies/:id |
get specific movie by id |
post |
/movies |
add new movie |
patch |
/movies/:id |
update movie by id |
delete |
/movies/:id |
delete a movie by id |
HTTP method |
Route |
Description |
get |
/genres |
get all genres |
get |
/genres/:id |
get specific genre by id |
post |
/genres |
add new genre |
patch |
/genres/:id |
update genre by id |
delete |
/genres/:id |
delete a genre by id |