djongo (django+mongoDB) basic API endpoints
Documentation Himanshu Yadav
Starting the project API endpoint documentation
Starting the Project
-
Download the .zip or clone the repository
-
Use pip install –r Requirements.txt in the directory to install the required libraries.
-
Use manage.py runserver command in the same directory as manage.py file.

Description:
It takes all the information of Pizzas in the database and returns it as response_dict dictionary.
Input : takes no input
Output : List of all the Pizzas

It takes value for input for a pizza and creates object for it in database, if type is not one of the two specified, it will not make the entry in DB.
Input data:

If TYPE mentioned wrong, result is failure

It takes the value of primary key to identify the record to be edited or deleted, and then it updates or deletes the record as per new info provided. Process input determines the process to be performed.

This takes no input and traverses through all entries and creates classification and filtering and returns a dictionary with three entities: Filtered by Type Filtered by Size Filtered by Toppings
Output: { "bytype": { "square": { "pizSize": [ "medium" ], "pTops": [ "nuts,sauce," ] } }, "bysize": { "too small": { "pizType": [ "square" ], "pTops": [ "nuts,sauce," ] }, "medium": { "pizType": [ "square" ], "pTops": [ "nuts,sauce," ] } }, "bytops": { "nuts,sauce,": { "pizSize": [ "medium" ], "pizType": [ "square" ] } } }














