Class InstallationController
- Namespace
- Oqtane.Controllers
- Assembly
- Oqtane.Server.dll
[Route("api/[controller]")]
public class InstallationController : Controller
- Inheritance
-
InstallationController
Constructors
InstallationController(IConfigManager, IInstallationManager, IDatabaseManager, ILocalizationManager, IMemoryCache, IHttpContextAccessor, IAliasRepository, ISiteRepository, ILogger<InstallationController>, ITenantManager, IServerStateManager)
public InstallationController(IConfigManager configManager, IInstallationManager installationManager, IDatabaseManager databaseManager, ILocalizationManager localizationManager, IMemoryCache cache, IHttpContextAccessor accessor, IAliasRepository aliases, ISiteRepository sites, ILogger<InstallationController> filelogger, ITenantManager tenantManager, IServerStateManager serverState)
Parameters
configManager
IConfigManagerinstallationManager
IInstallationManagerdatabaseManager
IDatabaseManagerlocalizationManager
ILocalizationManagercache
IMemoryCacheaccessor
IHttpContextAccessoraliases
IAliasRepositorysites
ISiteRepositoryfilelogger
ILogger<InstallationController>tenantManager
ITenantManagerserverState
IServerStateManager
Methods
IsInstalled(string)
[HttpGet("installed")]
public Installation IsInstalled(string path)
Parameters
path
string
Returns
List()
[HttpGet("list")]
public List<string> List()
Returns
Load(string)
[HttpGet("load")]
public IActionResult Load(string list = "*")
Parameters
list
string
Returns
Post(InstallConfig)
[HttpPost]
public Task<Installation> Post(InstallConfig config)
Parameters
config
InstallConfig
Returns
Register(string)
[HttpPost("register")]
[Authorize(Roles = "Host Users")]
public Task Register(string email)
Parameters
email
string
Returns
Restart()
[HttpPost("restart")]
[Authorize(Roles = "Host Users")]
public void Restart()
Upgrade()
[HttpGet("upgrade")]
[Authorize(Roles = "Host Users")]
public Installation Upgrade()