WebAPI Help Pages Do Not Display All Endpoints for OData Controller

I added the manual page component for my ASP.NET MVC Web API using OData. To make it work, I had to explicitly specify [ApiExplorerSetting (IgnoreAPI = false)].

However, it shows only the GET endpoint only, for example: api / Customers.

But my API also supports GET by ID and some navigation properties, such as: api / Customers (id) and api / Customers (id) / ContactPerson

Is there a way for help pages to automatically generate these endpoints?

Thanks!

+4
source share
1 answer

HelpPage OData, [ApiExplorerSetting(IgnoreAPI = true)] ODataController. false, , ( , ) , , .

+4

Source: https://habr.com/ru/post/1525200/


All Articles