When we use an Async service, Swagger isn’t generating the docs for that specific API call (other non-Async calls in the service get generated). If I make the service non Async, it generates fine.
Request DTO/API Decleration:
[Route("/UpdateInfo/{Id}", "PUT", Summary = "Updates info.")]
public class UpdateInfoReq : IReturn<InfoUpdateResponseDTO>
{
[ApiMember(IsRequired = true)]
public Guid Id { get; set; }
[ApiMember(IsRequired = true)]
public InfoUpdateDTO myInfoUpdate { get; set; }
}
Service Signature:
public class MyController2 : Service
{
public async Task<InfoUpdateResponseDTO> Update(UpdateInfoReq query)
{...implementation...}
}
I’m sure I’m just making a simple mistake. Help?