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
http://127.0.0.1:8000/auth/users/
http://127.0.0.1:8000/restaurant/api-token-auth/
http://127.0.0.1:8000/restaurant/menu-items/ #Menu http://127.0.0.1:8000/restaurant/booking/tables/ #Reservations
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!