Support Custom Odata Annotation @odata.RequiredSelect in Response
Looking for ways to support custom Odata Annotation with @odata.RequiredProperty in Response? The response example:- { "@odata.context":"https://localhost:9000/odata/$metadata#Documents","value": [ { "@odata.RequiredProperty":"testProperty" ,"ID":1,"Name":"Another.txt","Content":"test" }, { "@odata.RequiredProperty":"testProperty2" ,"ID":2,"Name":"Another2.txt","Content":"test2" } ] }
Thanks for help!
@akhilkohlimicrosoft odata is the reserved prefix name in the annotation. you can use other namespace names other than odata.
In the WebAPI 7.x version, you can use the new feature merged at https://github.com/OData/WebApi/pull/2219 to create instance annotation.
@akhilkohlimicrosoft Did you manage to resolve this?
Closed due to inactivity