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

(cherry picked from commit 9cf7e965a9)
This commit is contained in:
Mole
2022-09-01 14:01:49 +02:00
committed by Sebastiaan Janssen
parent 126a2593ee
commit 669f8ff5ba
5 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
using System.Text.Json.Serialization;
using Umbraco.Cms.Core;
namespace Umbraco.Cms.ManagementApi.ViewModels.Server;
public class ServerStatusViewModel
{
[JsonConverter(typeof(JsonStringEnumConverter))]
public RuntimeLevel ServerStatus { get; set; }
}