Ask a Question

Swagger throws error for the following api method definition [HttpGet("{cancellationToken}")]

guyshachar
Occasional Visitor

Swagger throws error for the following api method definition [HttpGet("{cancellationToken}")]

Swagger throws an error for the following api method definition [HttpGet("{cancellationToken}")]:

Failed to load API definition.

Fetch error

undefined /swagger/v1/swagger.json

 

 

When I remove the template from the attribute swagger works as expected.

 

Any idea ?

cancel
Showing results for 
Search instead for 
Did you mean: