Skip to content

haval95/c_rest_menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Restaurant Menu

Running the Project

To run the project, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/haval95/c_rest_menu.git
  2. Activate the Virtual Environment:

    cd <project folder>
    pipenv shell
  3. Install Dependencies:

    pipenv install
  4. Run the Application:

    cd c_rest_menu
    python manage.py runserver

This sequence of steps will clone the repository, set up the virtual environment, install dependencies, and run the application locally.

API END POINTS



AUTHENTICATION AND REGISTRATION

POST - AUTHENTICATION - [USERNAME, PASSWORD]

 http://127.0.0.1:8000/api/token/

POST - REGISTRATION - [USERNAME, PASSWORD, EMAIL]

Http://127.0.0.1:8000/auth/users/



CATEGORIES AND MENU ITEMS
GET - GATEGORIES AND MENUITEMS - PUBLIC

   http://127.0.0.1:8000/api/categories/

GET - SINGLE CATEGORY AND MENUITEMS - PUBLIC

   http://127.0.0.1:8000/api/categories/[ID]

POST - INSERT CATEGORY [NAME, NAME_LANG]

   http://127.0.0.1:8000/api/categories/



CART
GET - CART ITEMS - AUTHENTICATION REQUIRED

  http://127.0.0.1:8000/api/cart/

POST - INSERT AN ITEM TO CART - [QUANTITY, MENU_ITEM_ID]

  http://127.0.0.1:8000/api/cart/



RESERVATION

POST - RESERVING A TABLE

   http://127.0.0.1:8000/api/reservation/
 {
   "table_id": 1,
   "reservation_time": "2024-01-13T06:31:00Z",
   "for_how_long": "01:02:00",
}

GET - RESERVED TIMES

   http://127.0.0.1:8000/api/reservation/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published