Reputation: 604
I have installed WebApi HelpPages on an existing project. I can see list of API's (including areas api's). But clicking on link just don't work to see details of API. I can't figure what i misunderstand.
Api itself work fine at http://localhost:23310/clases/api/_fakeTestApi/SumOver/3
maybe something with routing ?
We are using dozens of api's around areas in project without any kind of problem.... Only trying expose some of them.
Edit1
Thinking on routing, based on Marcus Höglund answer here I have already intent config.MapHttpAttributeRoutes();
in WebApiconfig and:
[HttpGet]
[Route("api/myNewRoute/SumOver")]
public HttpResponseMessage SumOver(int id){
//do some stuff
}
Same result here....
Upvotes: 0
Views: 183
Reputation: 604
Not really solved, but ASP.NET Core web API help pages with Swagger / OpenAPI work fine... using config.MapHttpAttributeRoutes();
Upvotes: 0