You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that I did my own app but it has all required functionalities like user auth and the likes its just a little different structure.
The app has a backend and frontend please be aware that the frontend functionality is extra and is not needed according to project requirements.
Feel free to play around with the front end just make sure to create a user first by using the djoser api as I will show soon.
Api list:
There are the api endpoints that are made by me and there are djoser auth/ endpoints provided by the djoser library
My API endpoints:
Menu view api: POST PUT PATCH and DELETE require admin token GEt requires no authentication
api/menu/ POST GET
api/menu/{menuId}/ GET PUT PATCH DELETE
Bookings view api: requires authentication
api/bookings/ POST GET
api/bookings/{bookingId}/ GET PUT PATCH DELETE
Djoser API endpoints
auth/users/ POST for registration (signing up) GET requires authentication when requested by admin token returns all users and when by regular user returns user info
auth/users/{userId}/ GET DELETE PUT PATCH when used by admin can be used on any user ID and when used by user it can be used with users own id only and acts like users/me/
auth/users/me/ requires authentication GET PUT PATCH DELETE
auth/token/login/ POST takes username and password and returns token
auth/token/logout/ takes token and expires token and it cannot be used anymore
Thank you again for your time please notice that I use appending slashes (=endpoint/)
About
Final little lemon django full-stack project for coursera.