I am working on a project that requires documentation on an API Help page. The page is already created, and it is ready for information to be inserted. But I have some issues:
I am very new to this, so I am having some issues navigating through the project.
I want to reference XML comments that are directly within the Controller files, like this:
/// <summary> /// Get all the number of help desk tickets by their current priorities /// </summary> /// <returns></returns> [ActionName("GetCurrentPriority")] public TicketPriorities GetTicketsByCurrentPriority() {...
The HTTP route code in the WebApiConfig.cs file looks like this:
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{action}/{id}",
defaults: new { id = RouteParameter.Optional }
);
However, I don't know how to post the comment on the web help page. I have seen many examples where a parameter ID is used, but there appears to be no ID, and I don't know how to find the parameter ID or make it, since the Help page shows all but the ID. For example, should I create an XMLDocument.xml
file and put all the comments in there?