-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question/Bug: Not Addressable Entities and Path generation #311
Comments
@sterlp Hi Paul, Thanks for reporting this! Seems like I only considered the read case for non-addressable entity sets 🙄 Please confirm if this is the desired behaviour:
Thanks in advance |
@ralfhandl Hello Ralf, many thanks for the fast response. To your questions:
Thanks Paul |
@sterlp Pull request #312 fixes the first two bullet points, using a test case based on your example. Regarding the third bullet point: I am not sure whether Gateway supports Could you please check with your service whether that works? Thanks in advance! |
I will check on Wednesday, sorry for the delay. I think we have to add some ABAB coding to ensure the call is received or not. |
Hello @ralfhandl, you are right, at least on OData v2 this won't work. Means only this works: Good:GET/DELETE/PATCH: Bad:GET/DELETE/PATCH: at least in out tests. Long story short: Only the Thanks Paul |
Hello Guys,
we discovered an interesting use case where the XSLT generator behaves a bit odd, at least in our currently even wrong:
As soon we add a create option for the sub entity, we also get two POST operation for SubEntity AddressSet. One on the parent, which is fine and one on the root.
But it requires the link to the head and of course it's ID should not be "create able".
As a workaround we can of course set it as create able, but we end up still with two "POST" end-points, where in one the parent ID is in the body and path and in the second, only because we set it as create-able, in the body.
Overall our expectation was, that no endpoint methods are generated on top level, if we set the entity as not address able.
Hope this description is somehow understandable.
With e.g. DELETE (or update/PATH) it works fine:
OpenAPI has only the DELETE endpoint on the sub-path:
Not sure if it is a bug, or intended behavior, because of a use case I can't think of right now. I testet most combinations but this particular one somehow let us wondering.
Thanks in advance
Paul
SAP HeadSet ist adressierbar und beides anlegbar.xml.txt
The text was updated successfully, but these errors were encountered: