Backoffice Api: Server Controller (#12932)

* Add initial implementation using 1 controller pr. action

* Add OpenApiTag attribute

Otherwise the endpoints won't be grouped correctly

* Use correct response type

* Move ApiVersion to endpoint controllers

* Add ServerController suffix to endpoint controllers
This commit is contained in:
Mole
2022-09-01 14:01:49 +02:00
committed by GitHub
parent 87ced87ddd
commit 9cf7e965a9
5 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Mvc;
using NSwag.Annotations;
using Umbraco.New.Cms.Web.Common.Routing;
namespace Umbraco.Cms.ManagementApi.Controllers.Server;
[ApiController]
[BackOfficeRoute("api/v{version:apiVersion}/server")]
[OpenApiTag("Server")]
public abstract class ServerControllerBase : Controller
{
}