-
Notifications
You must be signed in to change notification settings - Fork 712
PostTo Issue #742
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
Comments
Is there actually an issue or you just made an observation? It's possible something was missed, but this particular part of route building is not attempting to build the full path. This is looking for the root part of the OData path, which can only be:
The place where this looks like it might be an issue is inside While that is worth fixing, the only scenario I see that would be an issue is that a navigation property could be misinterpreted as an action or function.
|
Yes it is an issue because ODataActionDescriptorProvider.cs#L55 removes the ActionDescriptor and It'll not be readded because
Yes I understand, the navigation template you should look at is: NavigationRoutingConvention.cs#L85 Sorry for bad grammar, I'm not an English speaking person ;) |
Thanks for the confirmation. It looks like this use case is indeed missed so I'm going to go ahead and mark it as a bug. |
According to built-in-routing-conventions you should be able to Post to Navigation Collection Properties.
But it seems like #573 is hard coded to "CreateRef":
ODataRouteBuilderContext.cs
Valid Post actions on collection navigation properties is also:
PostTo{PropertyName}
andPostTo{PropertyName}From{EntityName}
The text was updated successfully, but these errors were encountered: