Documenting your controllers
ApiExplorerSettings
[ApiExplorerSettings(GroupName = "My item API")]
public class MyItemApiController : ManagementApiControllerBaseProducesResponseType Attribute
[HttpGet("{id:guid}")]
[ProducesResponseType<MyItem>(StatusCodes.Status200OK)]
[ProducesResponseType<ProblemDetails>(StatusCodes.Status404NotFound)]
public IActionResult GetItem(Guid id)
{
// Method implementation
}Example Documentation for Each Controller Method
GetAllItems
GetItem
CreateItem
UpdateItem
DeleteItem
Verifying the changes
Last updated
Was this helpful?