OpenAPI.NET.OData icon indicating copy to clipboard operation
OpenAPI.NET.OData copied to clipboard

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

Open Markus-Fjolnisson opened this issue 1 year ago • 0 comments

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

Markus-Fjolnisson avatar Aug 27 '24 12:08 Markus-Fjolnisson