OData Instance Annotation in ASP.Net Core OData v4

  • Thread starter Thread starter santhu7289
  • Start date Start date
S

santhu7289

Guest
We have an odata API developed in ASP.Net core application. API is able to send count and values[] in the response. Now we would like to send one more property called selectedcount along with odata response. For example,

{"@odata.count":100,"selectedcount":50,value:[{x},{y},{z}]}

selectcount can change during each API call. As per my understanding, instance annotation can be used to achieve above behavior. But I couldn't find any clear documentation or working example. Can anyone point me to the right direction would be really helpful.

Continue reading...
 
Back
Top