I have configured Swagger for my asp.net webapi which is similar to one shown below
[HttpGet]
[Route("search")]
public async Task<HttpResponseMessage> Get([FromUri]SearchCriteria searchCriteria)
When i see the swagger documentation for the webapi , the parameter is displaying as
searchCriteria.sortField searchCriteria.sortDirection and so on... being the sortField, sortDirection are properties of SearchCriteria
How to get the parameter names without the object.propertyname format?
Can anyone help how to fix this? Thanks