Giter Club home page Giter Club logo

food_stop's Introduction

foodstop

-Quick Demo of frontend and Backend sides of FoodStop: https://drive.google.com/file/d/1Qw5bbqoMSCPiUQYIE5rLxhRxa2xqxpHS/view?usp=sharing

Steps to follow:

-Instructions for API in backend part

Employee operations:

  1. Add food category (Add category like Snacks, Desserts etc.)

curl --location --request POST 'http://127.0.0.1:8000/employees/add-food-category' \ --header 'Content-Type: application/json' \ --data-raw '{ "category_name": "desserts" }'

  1. Retrieve all the added food categories

curl --location --request GET 'http://127.0.0.1:8000/employees/get-food-categories'

  1. Add food details (name, price) corresponding to categories added

curl --location --request POST 'http://127.0.0.1:8000/employees/add-food-details' \ --header 'Content-Type: application/json' \ --data-raw '{ "category_id_id": 1, "food_name": "KitKat Shake", "price": 200 } '

  1. Get Food Details

curl --location --request GET 'http://127.0.0.1:8000/employees/get-food-details'

Customer operations:

  1. SignUp to FoodStop

curl --location --request POST 'http://127.0.0.1:8000/customers/signup' \ --header 'Content-Type: application/json' \ --data-raw '{ "cust_email": "[email protected]", "password": "test" }'

  1. Login to FoodStop

curl --location --request GET 'http://127.0.0.1:8000/customers/1/login'

  1. View Menu curl --location --request GET 'http://127.0.0.1:8000/customers/view-menu'

  2. Create Food Order

curl --location --request POST 'http://127.0.0.1:8000/customers/1/place-order' \ --header 'Content-Type: application/json' \ --data-raw '{"cust_id":1}'

  1. Add food to Order

curl --location --request POST 'http://127.0.0.1:8000/customers/1/add-food-to-order' \ --header 'Content-Type: text/plain' \ --data-raw '{ "order_id": 1, "food_id": 1, "food_qty":10 }'

  1. Remove food from order

curl --location --request DELETE 'http://127.0.0.1:8000/customers/1/remove-food-from-order' \ --header 'Content-Type: application/json' \ --data-raw '{"order_id":1, "food_id":1}'

  1. View Order

curl --location --request GET 'http://127.0.0.1:8000/employees/1/view-order' \ --header 'Content-Type: application/json' \ --data-raw '{"order_id":1}'

  1. Checkout your Order

curl --location --request PUT 'http://127.0.0.1:8000/customers/1/checkout' \ --header 'Content-Type: application/json' \ --data-raw '{"order_id":1, "order_address":"IIIT Vadodara"}'

  1. View Total Order

curl --location --request GET 'http://127.0.0.1:8000/customers/1/view-order-total' \ --header 'Content-Type: application/json' \ --data-raw '{"order_id":1}'

  1. Cancel order

curl --location --request PUT 'http://127.0.0.1:8000/customers/1/cancel-order' \ --header 'Content-Type: application/json' \ --data-raw '{"order_id":1}'

food_stop's People

Contributors

mugdha273 avatar riyaparikh0112 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.