From 1e65340652e7bede364131a53dc40303e48c892b Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Fri, 30 May 2025 05:43:04 -0600 Subject: [PATCH] CURL examples --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 +```