stefmex
stefmex

Reputation: 604

Web API Help Pages discover API but can't show API description page

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.

Help Page Web Api link doesn't work 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....

enter image description here

Upvotes: 0

Views: 183

Answers (1)

stefmex
stefmex

Reputation: 604

Not really solved, but ASP.NET Core web API help pages with Swagger / OpenAPI work fine... using config.MapHttpAttributeRoutes();

Upvotes: 0

Related Questions