deepraj21 / Little-Lemon-Web-Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Little Lemon Web Application

APIs

restaurant/api/menu Allow all authenticated users to view the menu items Only admin user could post new item

Fields needed to post:

title: str

price: decimal

featured: (opt.) boolean, default = 0

restaurant/api/menu/<int:pk> Allow all authenticated users to view single menu item Only admin user could update or delete single item

restaurant/api/book Allow authenticated users to post new book, please use the same username of the user as the name of book

User could obtain all the books that has the same book name with the current username

Fields needed to post:

name: str, the same as username

guest_number: (opt.) int, default = 1

date: date, in the form of "YYYY-MM-DD"

comment: (opt.) text

restaurant/api/book/<int:pk> Only admin user could view or delete single book

Current users

Superuser/admin:

Username: admin Password: 123

Customer:

Username: customer1 Password: lemon@123!

Username: customer2 Password: lemon@123!

About


Languages

Language:Python 65.9%Language:CSS 20.0%Language:HTML 14.1%