Closed ashahabov closed 3 years ago
Set the ProducesResponseType
attribute and then pass the ApiResultResponse
as type like in the following:
[Route("weatherforecast")]
[HttpGet]
[ProducesResponseType(typeof(ApiResultResponse<WeatherForecast>), Status200OK)]
public async Task<IActionResult> Get()
{
// some code
}
Works! Thank you.
Environment
.csproj
Startup.cs
Swagger scheme
Response of GET: /weatherforecast request is correct:
But ACTUAL swagger's scheme is not:
EXPECTED scheme: