I'm developing an WebApi Odata service for internal usage. I want to remove from response at server all additional data except serialized data. I want to remove all this stuff:
{
"@odata.context":"http://192.168.150.86:9933/odata/$metadata#Terminal","value":[
]
}
and leave here only array of "Terminal"
is there any way to do this?
Add the following option to your query string:
$format=application/json;odata.metadata=none
This will remove the odata metadata from your results.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With