I have a post action receiving a FromBody-parameter of type Person. In the HelpPage I get information about the Person paramater. Is it possible to list information about the properties in Person instead and use documentation from XML documentation file to get descriptions for each property?
public class PersonController : ApiController
{
/// <summary>
/// Add a person
/// </summary>
/// <param name="person">Person to add</param>
/// <returns></returns>
[HttpPost]
public HttpResponseMessage Add([FromBody] Person person)
{
// ...
return Request.CreateResponse(HttpStatusCode.Created);
}
}
/// <summary>
/// A person
/// </summary>
public class Person
{
/// <summary>
/// The name of the person
/// </summary>
public String Name { get; set; }
/// <summary>
/// The age of the person
/// </summary>
public Int32 Age { get; set; }
}
///comments? The work item linked to by @KiranChalla seems to have implemented annotation support, but as of Oct '15 the docs still aren't being displayed on the help page.