Skip to content

pratyush3124/Movies_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movies_api

A CRUD and REST api with mongodb atlas.

Setup

First import all the python dependencies in your virtual environment or globally by the following command
pip install -r requirements.txt

Now you can run the api server by running the run.py file
python -m run

Documentation

The root has some information about the api

  • GET / will show the following output

Read

  • GET /movies/ will list all movies



  • GET /movies/<movieId> will return the movie with the given id


Create

  • POST /createMovie/ will create the movie record with given information in the body and returns the movie



Update

  • POST /movies/<movieId> updates the information of the given movie and returns the updated movie


Delete

  • DELETE /movies/<moviesId> deletes the movie record with the given id and returns success


Note

If in any of the requests, if the movieId doesn't exist then this will be returned


About

A CRUD and REST api with mongodb atlas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages