SwaggerRequestBodyType - Jusas/NSwag.AzureFunctionsV2 GitHub Wiki
SwaggerRequestBodyTypeAttribute
Indicates the type of the request body.
Example usage:
[SwaggerRequestBodyType(typeof(Person), Description = "description", Required = true, Name = "Body")]
[SwaggerResponse(200, typeof(string), Description = "OK result")]
[FunctionName("SwaggerRequestBodyTypeAttribute1")]
public static async Task<IActionResult> SwaggerRequestBodyTypeAttribute1(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequest req,
ILogger log)
{
return new OkResult();
}