/django_restapi_pizza_delivery

Built a pizza delivery restapi using DJANGO

Primary LanguagePython

PIZZA DELIVERY API

This is a REST API for a Pizza delivery service built using DJANGO, SQLAlchemy and PostgreSQL.

ROUTES TO IMPLEMENT

METHOD ROUTE FUNCTIONALITY ACCESS
POST /auth/signup/ Register new user All users
POST /auth/jwt/create/ Login user All users
POST /auth/jwt/refresh/ Refresh the access token All users
POST /auth/jwt/verify/ Verify the validity of a token All users
POST /orders/ Place an order All users
POST /orders/ Get all orders All users
GET /order/{order_id}/ Retrieve an order Superuser
PUT /orders/{order_id}/ Update an order All users
PUT /update-status/{order_id}/ Update order status Superuser
DELETE /delete/{order_id}/ Delete/Remove an order All users
GET /user/{user_id}/orders/ Get user's orders All users
GET /user/{user_id}/order/{order_id}/ Get user's specific order
GET /docs/ View API documentation All users

How to run the Project

  • Install Postgreql
  • Install Python
  • Git clone the project
  • Create your virtualenv with Pipenv or virtualenv and activate it.
  • Install the requirements with pip install -r requirements.txt
  • Create you database with python manage.py runserver
  • Finally run the API ``` python manage.py runserver ``