Meta Back-End Developer Capstone
โ
Django REST API's
- pipenv
- django
- mysqlclient
- django-livereload-server
- djangorestframework
Available API endpoints -> protected api's. Needed a valid credentials before viewing.
'menu/' -> Show the List of available Menus
'menu/int:pk/' -> Retrieve a specific Menu
Obtaining Authentication Tokens
restaurant:
'api-token-auth/'
little-lemon api:
'api/api-token-auth/'
Note: Registered users only can Obtain Tokens
'restaurant/booking/tables' -> show all the booked tables
LittleLemonAPI
'api/menu-items/' -> show all the available Menus
'api/menu-items/int:pk' -> show single resource available Item
'api/message/' -> Test Protection of API
Tools used for testing API's
-> Browsable API provided by django-rest-framework package
-> Insomia
Note: Can Query the available API's to the Frontend using the native javascript function called fetch(), libraries like jquery, axios or the XMLHttpRequest object.