Swagger UI not working with OData Controller V3 & WebApi 2

1.2k Views Asked by At

Swashbuckle.OData seems to have integration issues with OData V3 Controllers.I can see the end points on swagger UI, however UI cant fetch the data due to incorrect route prefix 'api' taken by the framework. The end points are working perfectly when testing using postman.

The other approach tried is to use explicit RoutePrefix on ODataController, this helped the Swagger UI show the RoutePrefix 'odata', however this causes the api to break completely and now we are not able to query or fetch data from Postman as well.

This is really frustrating, any guidance on this would be really helpful.

I have uploaded the sample solution in the following git Repo .. ##https://github.com/ss27051980/Swagger-OData.git##

0

There are 0 best solutions below