Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http PATCH and json Data #51

Open
celevra opened this issue Mar 8, 2016 · 0 comments
Open

http PATCH and json Data #51

celevra opened this issue Mar 8, 2016 · 0 comments

Comments

@celevra
Copy link

celevra commented Mar 8, 2016

Hi,

i'm not exactly sure how i can use the http patch method and transfer json data?
I want an equivalent for

curl -X PATCH --data '{"rrsets": [ {"name": "test.example.net.", "type": "A", "ttl": 3600, "changetype": "REPLACE", "records": [ {"content": "127.0.0.1", "disabled": false} ] } ] }' -H 'X-API-Key: xxx' http://127.0.0.1:8081/api/v1/servers/localhost/zones/example.net.

setting the Header is no problem, but where can i set the request type and the data?

thanks for your help

regards

celevra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant