Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support for JSON payload? #8

Closed
rmanalan opened this Issue · 6 comments

6 participants

@rmanalan

Do you guys have any plans to support posts/puts with a JSON payload?

@kmiyashiro

Yes, see issue #3 and the pull request #6. If you are feeling adventurous, you can merge in the changeset from the pull request (#6) and try it out.

@mateo41

Is this implemented? I need to be able to set the contentType on a POST request to application/json. Is this possible to do?

@dgc-wh

mateo41: I have a fork that implements an aarbitrary content and headers in POST requests, it's not very pretty right now, but it may serve your purposes: https://github.com/dgc-wh/iodocs

@mateo41

Thanks!

@rickhanlonii

For anyone else looking, issue #3 was solved when pull request #33 was merged. This moves the POST data to the request body, but does not POST it as JSON. For that you'll need to switch the query.stringify to JSON.stringify.

@phairow
Owner

this is currently supported through the parameters. see the public/data/egnyte.json for an example of using a parameter named Content-Type with location of 'header' the encoding of json is currently limited to only support content type of 'application/json' in the content type parameter.

@phairow phairow closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.