Derived Entities #648
Unanswered
EnriquoPablez
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Howdy folks, I've run into an issue I'm trying to resolve and am unsure whether it's a limitation with the library, or my knowledge of the library.
I've got a class structure of:
And have created an odata endpoint for A. This works fine, I can query for A's, and it'll return them along with the context specifying that they are either an instance of B or C. The Odata spec says I should then be able to append my endpoint call to be /A/B, to only return the B's, and cast them as B's. see here
When I try this, I get a 404 instead, which leads me to believe I need to implement a separate endpoint for dealing with that scenario, in the same way I need to implement /A(1) as a separate endpoint. When I create a separate endpoint, it's not getting treated as an Odata endpoint, however, and this is making me sad.
I guess my question is this: Is the derived type Odata spec supported out of the box? Do I need to do some shenanigans to get it to work?
Beta Was this translation helpful? Give feedback.
All reactions