To run the project, follow these steps:
-
Clone the Repository:
git clone https://github.com/haval95/c_rest_menu.git
-
Activate the Virtual Environment:
cd <project folder> pipenv shell
-
Install Dependencies:
pipenv install
-
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.
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/