You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- vidly store is API service that let customer to rent avaiable movie in store.
- When customer return the movie these API will calculate the rental fee according to days movie has been out multipled by dailyRentalRate.
features
- admins can register with POST request to /api/users
- get valid JWT token that will require in #crusual action like adding or deleting.
Technology & tools ๐ก
- Nodejs v14.6 -> JavaScript runtime environment
- Express v4.16.2 -> build API
- Mongoose v5.0.2 to manipluate with MongoDB.
Logging โ๏ธ
- Winstone v2.4
- Winstone-mongodb v3.0
Testing ๐งช
- For testing I've used Jest v29.5.
- To simulate the Request client used Supertest v3.0.
Endpoints: ๐
Movies /api/movies
Supported Method Required Token Support Id Paramter
- GET *
- POST *
- PUT * * *
- DELETE * * *
Genres /api/genres
Supported Method Required Token Support Id Paramter
- GET *
- POST * *
- PUT * * *
- DELETE * * *
Customers /api/customers
Supported Method Required Token Support Id Paramter
- GET *
- POST *
- PUT * * *
- DELETE * * *
Users /api/users
Supported Method Required Token Support Id Paramter
- GET *
- POST *
- PUT * * *
- DELETE * * *
Rentals /api/rentals ๐ฅ
Supported Method Required Token Support Id Paramter
- GET *
- POST * *
- PUT * * *
- DELETE * * *
Returns /api/returns
Supported Method Required Token Support Id Paramter
- GET *
- POST * *
- PUT * * *
- DELETE * * *