API for the first project of Front-end module on trybe, but now using my fullstack skills, its part of a personal project called Trybe new game +.
- Creation endpoints GET, POST, PUT and DELETE
- Creation of CRUD API with REST archtecture
- Generation of tokens with JWT
- Management of tokens
- Upload of files and storage with Multer
- Receive data from MongoDB cluster
- API Deployment
- File management with AWS S3 bucket service
it search, catalog, delete and update movies, some of that actions needs a token, this token that is provided before login.
- /users/:email - returns username, email and hash md5 from email
- /users/login - validate email and password then returns token that expires in 24 hours;
- /users/create - creates account;
- /users/validate/:token - returns if token still valid;
don't needS token: 🔷
needs token: 🔶
- /movies - returns every movie from database 🔷
- /movies/:id - returns filtered movie by id 🔷
- /movies/create - creates a new movie 🔶
- /movies/delete/:id - deletes movie that has id equal that param 🔶
- /movies/update/:id - update movie that has id equal that param 🔶
- /movies/img/:filename - returns movie cover that has filename equal that param 🔷