https://github.com/phantu279999/rest-api-littlelemon
This project django-rest-famework provide APIs Restaurant
https://github.com/phantu279999/rest-api-littlelemon
api django django-rest-framework oath
Last synced: 2 months ago
JSON representation
This project django-rest-famework provide APIs Restaurant
- Host: GitHub
- URL: https://github.com/phantu279999/rest-api-littlelemon
- Owner: phantu279999
- Created: 2024-08-07T14:50:33.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-10T13:49:06.000Z (10 months ago)
- Last Synced: 2024-12-10T14:43:13.590Z (10 months ago)
- Topics: api, django, django-rest-framework, oath
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API LittleLemon Restaurants
## I leaned at Coursera [Link](https://www.coursera.org/account/accomplishments/specialization/E6E4YSJGEUA2)
#### User Group(Manager, Delivery crew)### List Endpoint
#### /auth/users
Creates a new user with name, email and password
#### /auth/users/me
Displays only the current user
#### /auth/token/login
Generates access tokens that can be used in other API calls in this project
#### /api/menu-items
Lists all menu items.
#### /api/menu-items/{id}
Lists single menu item
#### /api/groups/{group_name}/users/
Returns all users in group
#### /api/cart/menu-items
Returns current items in the cart for the current user token
#### /api/orders
Returns all orders with order items created by this user
#### /api/orders/{orderId}
Returns all items for this order id. If the order ID doesn’t belong to the current user, it displays an appropriate HTTP error status code.