mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
API Updates
Fixes #7833 Fixes #6785 Fixes #6787 Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
@@ -54,9 +54,9 @@ namespace Radarr.Api.V3.System
|
||||
}
|
||||
|
||||
[HttpGet("status")]
|
||||
public object GetStatus()
|
||||
public SystemResource GetStatus()
|
||||
{
|
||||
return new
|
||||
return new SystemResource
|
||||
{
|
||||
AppName = BuildInfo.AppName,
|
||||
InstanceName = _configFileProvider.InstanceName,
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Core.Authentication;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.Update;
|
||||
|
||||
namespace Radarr.Api.V3.System
|
||||
{
|
||||
public class SystemResource
|
||||
{
|
||||
public string AppName { get; set; }
|
||||
public string InstanceName { get; set; }
|
||||
public string Version { get; set; }
|
||||
public DateTime BuildTime { get; set; }
|
||||
public bool IsDebug { get; set; }
|
||||
public bool IsProduction { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
public bool IsUserInteractive { get; set; }
|
||||
public string StartupPath { get; set; }
|
||||
public string AppData { get; set; }
|
||||
public string OsName { get; set; }
|
||||
public string OsVersion { get; set; }
|
||||
public bool IsNetCore { get; set; }
|
||||
public bool IsLinux { get; set; }
|
||||
public bool IsOsx { get; set; }
|
||||
public bool IsWindows { get; set; }
|
||||
public bool IsDocker { get; set; }
|
||||
public RuntimeMode Mode { get; set; }
|
||||
public string Branch { get; set; }
|
||||
public DatabaseType DatabaseType { get; set; }
|
||||
public Version DatabaseVersion { get; set; }
|
||||
public AuthenticationType Authentication { get; set; }
|
||||
public int MigrationVersion { get; set; }
|
||||
public string UrlBase { get; set; }
|
||||
public Version RuntimeVersion { get; set; }
|
||||
public string RuntimeName { get; set; }
|
||||
public DateTime StartTime { get; set; }
|
||||
public string PackageVersion { get; set; }
|
||||
public string PackageAuthor { get; set; }
|
||||
public UpdateMechanism PackageUpdateMechanism { get; set; }
|
||||
public string PackageUpdateMechanismMessage { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user