CURL examples
This commit is contained in:
12
README.md
12
README.md
@@ -1,3 +1,15 @@
|
|||||||
# replicate-jump-server
|
# replicate-jump-server
|
||||||
|
|
||||||
A temporary staging area to provide image URIs to the replicate.com API
|
A temporary staging area to provide image URIs to the replicate.com API
|
||||||
|
|
||||||
|
## Testing with CURL
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -X POST http://localhost:8080/upload \
|
||||||
|
-H "Authorization: Bearer your-secret-bearer-token" \
|
||||||
|
-F "image=@/path/to/image.jpg"
|
||||||
|
|
||||||
|
curl -X GET http://localhost:8080/image/{id} \
|
||||||
|
-H "Authorization: Bearer your-secret-bearer-token" \
|
||||||
|
--output retrieved-image.jpg
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user