Download rest.http from minhvh/her: direct link, hf CLI and curl.
- Browser
- Download file 784 Bytes
-
https://huggingface.co/spaces/minhvh/her/resolve/main/rest.http
- Command line
-
hf download hf://spaces/minhvh/her/rest.http
-
curl -L -o rest.http https://huggingface.co/spaces/minhvh/her/resolve/main/rest.http
784 Bytes
| ### | |
| # Sample REST Client file | |
| # Use "###" to separate requests | |
| ### | |
| ### Get all items | |
| GET http://localhost:8000/ps | |
| Accept: application/json | |
| ### Get a specific item by ID | |
| GET http://localhost:8000/browser/start | |
| Accept: application/json | |
| ### Get a specific item by ID | |
| GET http://localhost:8000/connect | |
| Accept: application/json | |
| ### Create a new item | |
| POST http://localhost:8000/api/items | |
| Content-Type: application/json | |
| { | |
| "name": "New Item", | |
| "description": "This is a new item description", | |
| "price": 19.99 | |
| } | |
| ### Update an existing item | |
| PUT http://localhost:8000/api/items/123 | |
| Content-Type: application/json | |
| { | |
| "name": "Updated Item", | |
| "description": "This item has been updated", | |
| "price": 29.99 | |
| } | |
| ### Delete an item | |
| DELETE http://localhost:8000/api/items/123 |