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:
@@ -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; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Umbraco.Cms.ManagementApi.ViewModels.Server;
|
||||
|
||||
public class VersionViewModel
|
||||
{
|
||||
public string Version { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user