Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HI!

In this project static files like logo.png as well as JS files from previous assignment are combined with the new API tasks. All the links for testing API are below.

test.py is located restaurant\tests.py. To run tests simple use command: python manage.py test index.html is located restaurant\templates\index.html

API for testing

Create New User

http://127.0.0.1:8000/auth/users/

Get Token (POST only)

http://127.0.0.1:8000/restaurant/api-token-auth/

GET, POST

http://127.0.0.1:8000/restaurant/menu-items/ #Menu http://127.0.0.1:8000/restaurant/booking/tables/ #Reservations

PUT, DELETE

http://127.0.0.1:8000/restaurant/menu-items/1 #Menu http://127.0.0.1:8000/restaurant/booking/tables/1 #Reservations

DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'reservations', 'HOST' : 'localhost', 'PORT' : '3306', 'USER' : 'root', 'PASSWORD' : '', } }

Have fun!

About

Using the Django REST Framework, to practice to build an API for the Little Lemon restaurant.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages