allow custom data type while sending a request.
I think it is better for developer to allow custom data type while sending a request. so could you merge it and release. what do your think? @StefH @Sir-J
So ... I saw this PR. I think it's a very strange solution. If I right understand, you want to send custom data on Post and get another type of data?
Yes.we just want to send a request with content-type: 'application/json'.not 'Content-Type: text/plain'.Is it strange?
Because in your PR you don't change the logic. Early was:
JSON.stringify(this.entity)
you changed it to:
this.config.extractRequestDataFormat(this.entity)
but this function return JSON.stringify(data). Where data it's this.entity
What did you change?
Because in your PR you don't change the logic. Early was:
JSON.stringify(this.entity)you changed it to:this.config.extractRequestDataFormat(this.entity)but this function returnJSON.stringify(data). Where data it'sthis.entityWhat did you change?
I think the developers can redefine the extractRequestDataFormat by extends ODataConfiguration.like configure the baseUrl,defaultRequestOptions and so on.The developers can configure the baseUrl, extractQueryResultData(), even getEntityUri(). I think it is a great way to configure requestBody like this.@Sir-J