Skip to content

Commit

Permalink
Readme: fix verb used for /ping endpoint example (#15)
Browse files Browse the repository at this point in the history
As we can see in [Bump.sh
documentation](https://developers.bump.sh/operation/operation-get-ping),
endpoint https://bump.sh/api/v1/ping is accessible with verb 'GET', not
'POST'.

I'm glad to contribute to this beautiful project, congratulations on
your new open brick 🚀
  • Loading branch information
Polo2 authored Dec 2, 2024
1 parent 3de70d9 commit 3bf23a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ The server verifies the `x-cors-toujours-token` header for every request (name o
- `path`: Allowed path pattern, supporting path parameters (e.g., `/posts/{post_id}`)
- `exp`: Token expiration timestamp

E.g.: A client sending a request to `POST https://bump.sh/api/v1/ping`
E.g.: A client sending a request to `GET https://bump.sh/api/v1/ping`
via the proxy will need to include an encoded JWT token in
the `x-cors-toujours-token` header, whose decoded value would look like:
```json
{
"servers": ["https://bump.sh"],
"path": "/api/v1/ping",
"verb": "POST",
"verb": "GET",
"exp": "2025-01-01T00:00:00Z"
}
```
Expand Down

0 comments on commit 3bf23a9

Please sign in to comment.