Skip to content
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

NavigationProperty has all possible methods, while base endpoint only has GET available. #569

Open
Markus-Fjolnisson opened this issue Aug 27, 2024 · 0 comments

Comments

@Markus-Fjolnisson
Copy link

Im pretty new to C# development, so let me know if i need to include more details!

I am trying to use metadata (edmx file) from Business Central to generate swaggerUI docs for our custom API, but im having issues with navigation properties.

The base endpoint gets converted properly, only showing the valid methods for the endpoint:
image

But the NavigationProperty endpoints seem to get generated with no regard to the base endpoint:
image

I tried to use the "RequireDerivedTypesConstraintForBoundOperations" parameter in the ConvertSettings of the OoasUtil tool, with no luck.

Is there a way for me to either configure the converter or edit my edmx file in order to only show actually available methods for "nested" endpoints?

NavigationProperty for EntityType company:
image

EntitySet for custLedgerEntries endpoint:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant