Movizo is a backend API that allows users to register, log in, and perform various operations related to movie management. Users can create, retrieve, update, and delete movies, as well as filter movies based on specific criteria.
- Registration and Login
- Get All Movies
- Create a Movie
- Get Movies by Name
- Delete a Movie
- Update a Movie
- Filter Movies
-
Register User:
- Endpoint: [POST]
https://movizo.vercel.app/users/register
- Request Body:
{ "username": "Sanjay", "email": "[email protected]", "password": "sanjay" }
- Response: New user created
- Endpoint: [POST]
-
Login:
- Endpoint: [POST]
https://movizo.vercel.app/users/login
- Request Body:
{ "email": "[email protected]", "password": "sanjay" }
- Response: Token (valid for 15 minutes)
- Endpoint: [POST]
- Get All Movies:
- Endpoint: [GET]
https://movizo.vercel.app/movies
- Authorization: Bearer Token (Generated from login)
- Response: Empty array (No movies created)
- Endpoint: [GET]
- Create a Movie:
- Endpoint: [POST]
https://movizo.vercel.app/movies
- Authorization: Bearer Token (Generated from login)
- Request Body:
{ "name": "Leo End", "director": "Lokesh", "year": "2024", "language": "Tamil", "rating": 8 }
- Response: Movie details stored in MongoDB
- Endpoint: [POST]
- Get Movies by Name:
- Endpoint: [GET]
https://movizo.vercel.app/movies/{movieName}
- Authorization: Bearer Token
- Response: Movie details (if exists)
- Endpoint: [GET]
- Delete a Movie:
- Endpoint: [DELETE]
https://movizo.vercel.app/movies/{movieName}
- Authorization: Bearer Token
- Response: Movie deleted successfully
- Endpoint: [DELETE]
- Update a Movie:
- Endpoint: [PUT]
https://movizo.vercel.app/movies/{movieName}
- Authorization: Bearer Token
- Request Body:
{ "name": "Leo End Updated", "director": "Lokesh Kanagaraj", "year": "2024", "language": "Tamil", "rating": 10 }
- Response: Movie updated successfully
- Endpoint: [PUT]
- Filter Movies:
- Endpoint: [GET]
https://movizo.vercel.app/movies/filter?name={anyMovie}
- (or)
https://movizo.vercel.app/movies/filter?language={anyLang}
- (or)
https://movizo.vercel.app/movies/filter?year={anyYear}
- (or)
- Authorization: Bearer Token
- Response: Filtered movies based on the specified criteria
- Endpoint: [GET]
- The token generated during login is valid for 15 minutes.
- Work in progress for additional features.
Still working on movizo to make some cool feature, feel free to contribute
--Sanjay
Some snaps!