Below code for generating a endpoint and documentation in swagger.
I need to add description to the name property which is a part of DataObjectResponse. But cant find a way to do it.
/// <summary>
/// Get something
/// </summary>
/// <returns>An http action result</returns>
public DataObjectResponse SomeMethod([FromQuery] DataObjectRequest core){
}
public class DataObjectRequest {
public string Name {get; set;}
}
Generally description can be added to query parameters using
/// <summary>
/// Get something
/// </summary>
/// <returns>An http action result</returns>
/// <param name="name">Description for name</param>
public DataObjectResponse SomeMethod(string Name){
}
But am unable to find a way to add description for a property inside a object