Update README.md
Browse files
README.md
CHANGED
@@ -8,8 +8,7 @@ app_file: app.py
|
|
8 |
pinned: false
|
9 |
---
|
10 |
|
11 |
-
# Sanjeev's Favorite Drink API
|
12 |
-
|
13 |
This is a REST API with full CRUD (Create, Read, Update, Delete) operations that lets you manage a list of drinks. It is hosted on Hugging Face Spaces and serves as a fun way to access and explore my favorite drinks.
|
14 |
|
15 |
The API includes features such as retrieving the list of all drinks, getting details of a specific drink, adding new drinks, and deleting them. Note that due to the hosting limitations of Hugging Face Spaces, POST and DELETE operations are currently disabled.
|
@@ -20,7 +19,7 @@ The API includes features such as retrieving the list of all drinks, getting det
|
|
20 |
|-------------|----------------|--------------------------------------------------|
|
21 |
| GET | `/` | Returns a list of all drinks. |
|
22 |
| GET | `/drinks` | Same as `/`, returns all drinks. |
|
23 |
-
| GET | `/drinks/<id>` | Returns details of a specific drink by its ID.
|
24 |
| POST | `/drinks` | Add a new drink (not supported on Hugging Face).|
|
25 |
| DELETE | `/drinks/<id>` | Delete a drink (not supported on Hugging Face). |
|
26 |
|
|
|
8 |
pinned: false
|
9 |
---
|
10 |
|
11 |
+
# Sanjeev's Favorite Drink API 🥤
|
|
|
12 |
This is a REST API with full CRUD (Create, Read, Update, Delete) operations that lets you manage a list of drinks. It is hosted on Hugging Face Spaces and serves as a fun way to access and explore my favorite drinks.
|
13 |
|
14 |
The API includes features such as retrieving the list of all drinks, getting details of a specific drink, adding new drinks, and deleting them. Note that due to the hosting limitations of Hugging Face Spaces, POST and DELETE operations are currently disabled.
|
|
|
19 |
|-------------|----------------|--------------------------------------------------|
|
20 |
| GET | `/` | Returns a list of all drinks. |
|
21 |
| GET | `/drinks` | Same as `/`, returns all drinks. |
|
22 |
+
| GET | `/drinks/<id>` | Returns details of a specific drink by its ID. |🥤
|
23 |
| POST | `/drinks` | Add a new drink (not supported on Hugging Face).|
|
24 |
| DELETE | `/drinks/<id>` | Delete a drink (not supported on Hugging Face). |
|
25 |
|