diff --git a/README.md b/README.md index 3566f58..bf66b84 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ # replicate-jump-server 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 +```