A
A
andy3010862015-08-29 13:09:56
.NET
andy301086, 2015-08-29 13:09:56

Web api documentation generation?

Hello.
Perhaps someone faced such a problem.
There is a web api (.net), in which the custom attribute versionedRoute is used for method versioning. When generating documentation, if the methods are no different, then information is displayed only for the first method. For example (just an example):

[VersionedRoute("",1)]
public ActionResult Get() 
{ ...

[VersionedRoute("",2)]
public ActionResult GetV2() 
{ ...

The api documentation will be generated only for the second method (on the one hand, it is clear that they have the same routes).
To generate the docks, I installed the Microsoft.AspNet.WebApi.HelpPage package.
Perhaps someone has encountered such a problem or used other tools in the project for documentation that allow you to use custom attributes.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rootfest, 2016-12-10
@rootfest

It's already late, of course, but take a look at swagger.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question