Last post Jul 10, 2019 03:04 PM by Phil Spiderman
Jul 10, 2019 03:04 PM|Phil Spiderman|LINK
I hope I am posting this in the right place and any help would be very much appreciated.
I am new to oData and Web API development in general, so I'll do my best here. I've inherited an oData/Swagger-based web API project that is utilized by an offshore development team to develop a client-facing web application. The
offshore web team has requested that the odata.Type value returned in the response just contain the name of the derived object being returned.
It's a basic scenario in which I have a Product object (Product) that has several derived/child objects (ex. SeismicData). Right now this is how it works:
"@odata.type":"#default.SeismicData"," ... and all the other properties}
The request is for the @odata.type to be: "@odata.type":"SeismicData".
I have tried setting the EDM builder namespace to an empty string, but this returns the fully-qualified namespace, not just "SeismicData".
So, doesn't anyone know if this is possible, and if so, how?
Thank you for any assistance.