angular-odata-es5 icon indicating copy to clipboard operation
angular-odata-es5 copied to clipboard

Allow body to json on PUT/POST/PATCH

Open ellen2212 opened this issue 5 years ago • 5 comments

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 avatar May 12 '20 07:05 ellen2212

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

Sir-J avatar May 12 '20 07:05 Sir-J

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

ellen2212 avatar May 13 '20 02:05 ellen2212

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?

StefH avatar May 15 '20 07:05 StefH

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

ellen2212 avatar May 17 '20 06:05 ellen2212

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

ellen2212 avatar May 28 '20 01:05 ellen2212