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/
    will return the movie with the given id

Create

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


Update

  • POST /movies/
    updates the information of the given movie

Delete

  • DELETE /movies/
    deletes the movie record with the given id

Note

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

GitHub

View Github