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

Allow body to json on PUT/POST/PATCH #94

Open
ellen2212 opened this issue May 12, 2020 · 5 comments
Open

Allow body to json on PUT/POST/PATCH #94

ellen2212 opened this issue May 12, 2020 · 5 comments
Labels

Comments

@ellen2212
Copy link

ellen2212 commented May 12, 2020

Hi,

thank you for your library, it is useful.
However we need post/put the json data to server and it didn't support.
1589267943412

could you please export a function in ODataConfiguration.
Or other any way.
Thanks,
Ellen

@ellen2212 ellen2212 changed the title Allow body to jsonType on PUT/POST/PATCH Allow body to json on PUT/POST/PATCH May 12, 2020
@Sir-J
Copy link
Contributor

Sir-J commented May 12, 2020

Please, create an example, how are you want to use a new function.

@StefH StefH added the question label May 12, 2020
@ellen2212
Copy link
Author

ellen2212 commented May 13, 2020

Thank you for your reply.
I need a new function like this.
example/odata.service.ts (function extractRequestDataFormat)
Thanks,
Ellen

@StefH
Copy link
Owner

StefH commented May 15, 2020

Actually you want to be able to control how the data is serialized before it's send to the server?
At this moment, JSON.stringify is always used.

Correct?

@ellen2212
Copy link
Author

ellen2212 commented May 17, 2020

Yes.Could you help us to fix it, or I create a new pull request.Thanks very much.

@ellen2212
Copy link
Author

@StefH Do you have any advice to help us. Thanks very much.

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

No branches or pull requests

3 participants