friism
friism

Reputation: 19279

Omit meta-data from oData response

I'm experimenting with writing Javascript/JSONP queries against an WCF oData API. For performance reasons, I'm trying to keep the responses succinct. The default seems to be for the oData endpoint to return uri and type metadata with every returned result. This information can take up a significant portion of response payload. Is there a way to ask the oData endpoint to omit this information?

Upvotes: 0

Views: 431

Answers (1)

Vitek Karas MSFT
Vitek Karas MSFT

Reputation: 13320

Currently there's no way in the OData protocol to achieve that. Technically the metadata is part of the response, that's what makes it OData and not just arbitrary JSON.

Upvotes: 2

Related Questions