Repository files navigation
Contributors: Deepak Dhamuria
POST /auth Accepts a body of username and password and returns a token to be used for authorization
GET /movies Takes in a header of Authorization with value of Bearer {token} and returns all movies entered by the authorized user
GET /movies/search Search movies based on title. Accepts query parameter of title={movie name} and responds back with an array of movies
POST /movies Add a movie to the database. Requires a request body of the movieID fetched from search service
Visit Swagger docs
Install Docker Desktop
Clone this repository
Change values in .env file for application running port
run docker-compose up -d
To stop run docker-compose down
Open http://localhost:3000/api-docs to refer to Swagger docs
About
Repository for Node.js department's recruitment process.
Resources
Stars
Watchers
Forks
Languages
JavaScript
97.8%
Dockerfile
1.1%
Shell
1.1%
You can’t perform that action at this time.