docs icon indicating copy to clipboard operation
docs copied to clipboard

docs: hydra patch API

Open vinckr opened this issue 2 years ago • 2 comments

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 avatar Feb 28 '22 13:02 vinckr

@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?

yanuehara avatar May 03 '22 11:05 yanuehara

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.

vinckr avatar May 03 '22 13:05 vinckr