Code Monkey home page Code Monkey logo

pizza_restapi's Introduction

Pizza_RestAPI

Requirements

Python 3.6

Django 3.1

Django REST Framework

Installation

After you cloned the repository, you want to create a virtual environment, so you have a clean python installation. You can do this by running the command

python -m venv env

After this, it is necessary to activate the virtual environment,

You can install all the required dependencies by running

pip install -r requirements.txt

After providing required configurations of mongodb in Pizza_RestAPI/Pizza_RestAPI/settings.py

python manage.py makemigrations

python manage.py migrate

Start the server

pythion manage.py runsever

Overview of API.

Methods endpoints/urls Actions
POST api/add_pizza add new pizza
GET api/pizza get all pizza
GET api/pizza/?type=xyz get all pizza of type 'xyz'
GET api/pizza/?size=xyz get all pizza of size 'xyz'
GET pizza_detail/id get pizza by id(integer type)
PUT pizza_update/id update pizza by id(integer type)
DELETE pizza_update/id delete pizza by id(integer type)

pizza_restapi's People

Contributors

surajsongara avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.