In a big system, where there are an api for lots of resources, I want split documentation in some configured manner.
Like if they were different apis.
So in main page of web api I have a list of configured 'resources'.
Let's say: Managing contacts [Here i want to expose the 'contact' resource, the 'address' resource, etc. Managing orders [product resource, order resource, delivery resource, balance resource, etc] Managing products [product resource, category resource, etc]
So it's easier for api consumers to understand based on the task to accomplish which methods should been taken care of.
Also, as you can see, different sections use same resources, that means if I change something on the Product resource, both documentations should (ideally) be automatically updated, including versioning info, etc.
EDIT:
public ActionResult Index()
{
ViewBag.DocumentationProvider = Configuration.Services.GetDocumentationProvider();
return View(Configuration.Services.GetApiExplorer().ApiDescriptions);
}
this is my index action on helpcontroller, not sure what you mean.