go run main.go
- Make sure to create database with name IMDB
- Create 2 collections 1 is user with admin user and other collection name is movies
{"username":"admin","password":"admin", "role":"admin"}
- Import the imdb.json file to movies collection.
- Get - http://localhost:3032/movies - Available to all
- Post - http://localhost:3032/movies - requires authorization(bearer) token
- Delete - http://localhost:3032/movies/{id} - requires authorization(bearer) token
- Patch - http://localhost:3032/movies/{id} - requires authorization(bearer) token and allows only score and popularity field changes.
- Post - http://localhost:3032/auth/login