docs
docs copied to clipboard
docs: hydra patch API
From February Slack harvest:
It is not super clear how to use the Patch an Oauth2 client API https://www.ory.sh/docs/hydra/reference/api#operation/patchOAuth2Client
We can add a short guide with this example
This adds a redirect URI to a client:
curl http://localhost:4445/clients/my-client-id -XPATCH -d '[{ "op": "add", "path": "/redirect_uris/-", "value": "my-custom-scheme://login" }]' -H 'content-type: application/json'
and also this website that helps a lot with testing out patches:
http://jsonpatch.com/
@vinckr I felt the same this week while implementing a client for the admin endpoints. Took me a while a and a look at the source code to figure out how to use it.
There's no activity in this issue since it was opened. Can I propose some changes to the documentation to address this issue?
Hey Yan, thanks for your comment. Definitely you can propose changes, we are always open to ideas & contributions. It could be a document similar to the Creating OAuth2 Clients(shorter) or in the FAQ.