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

Example for serializing client POST content #4

Closed
pinx opened this issue Jan 3, 2017 · 1 comment
Closed

Example for serializing client POST content #4

pinx opened this issue Jan 3, 2017 · 1 comment

Comments

@pinx
Copy link

pinx commented Jan 3, 2017

There is an example for deserializing received content, but none for serializing content that I want to post to my backend.
I have been using NewtonSoft for regular JSON. Its JsonSerializerSettings can take a resolver as an argument. Maybe you can make it so, that your resolver can be plugged in.
sample.
API doc

@cosullivan
Copy link
Owner

Hi,

There is a Hypermedia.Sample.Client which contains a sample for sending the data back to the server.

I don't think it would work if I made a Json.Net compatible resolver because my resolver simply deals with the metadata of a resource. It would still require JSONAPI formatter that returns the JSON in the appropriate format.

Thanks,
Cain

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

2 participants