How can I add my description and summary to the Swagger-API-description in Umbraco 12?
So, I'm adding a custom controller in Umbraco 12, with the following code:
using Microsoft.AspNetCore.Mvc;
namespace MyPersonalBlog.Backend.Controllers
{
/// <summary>
/// This is an awesome controller
/// </summary>
[ApiController]
[Route("[controller]")]
public class ExampleController : ControllerBase
{
/// <summary>
/// This is my summary for this request
/// </summary>
/// <returns>a string</returns>
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public string ExampleRequest()
{
return "Blabla";
}
}
}
How can I add my description and summary to the Swagger-API-description in Umbraco 12?
So, I'm adding a custom controller in Umbraco 12, with the following code:
How can I get the summary in my swagger?
is working on a reply...