Skip to content

Commit

Permalink
update example urls to avoid url hijacking
Browse files Browse the repository at this point in the history
  • Loading branch information
jamsinclair committed Oct 6, 2024
1 parent 5971b1a commit 3252a27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ If you are using a Pantry client, you can simply replace the Pantry domain or ba

```shell
# Create a Basket
curl -X POST https://your-nook-url.nook.workers.dev/apiv1/pantry/your-pantry-id/basket/yourBasket \
curl -X POST https://your-nook-url.cloudflare.workers.dev/apiv1/pantry/your-pantry-id/basket/yourBasket \
-H "Content-Type: application/json" \
-d '{"city": "New York"}'

# Get Basket
curl https://your-nook-url.nook.workers.dev/apiv1/pantry/your-pantry-id/basket/yourBasket
curl https://your-nook-url.cloudflare.workers.dev/apiv1/pantry/your-pantry-id/basket/yourBasket

# Update Basket
curl -X PUT https://your-nook-url.nook.workers.dev/apiv1/pantry/your-pantry-id/basket/yourBasket \
curl -X PUT https://your-nook-url.cloudflare.workers.dev/apiv1/pantry/your-pantry-id/basket/yourBasket \
-H "Content-Type: application/json" \
-d '{"state": "NY"}'

Expand Down

0 comments on commit 3252a27

Please sign in to comment.