Table of Contents

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 IConfigManager
installationManager IInstallationManager
databaseManager IDatabaseManager
localizationManager ILocalizationManager
cache IMemoryCache
accessor IHttpContextAccessor
aliases IAliasRepository
sites ISiteRepository
filelogger ILogger<InstallationController>
tenantManager ITenantManager
serverState IServerStateManager

Methods

IsInstalled(string)

[HttpGet("installed")]
public Installation IsInstalled(string path)

Parameters

path string

Returns

Installation

List()

[HttpGet("list")]
public List<string> List()

Returns

List<string>

Load(string)

[HttpGet("load")]
public IActionResult Load(string list = "*")

Parameters

list string

Returns

IActionResult

Post(InstallConfig)

[HttpPost]
public Task<Installation> Post(InstallConfig config)

Parameters

config InstallConfig

Returns

Task<Installation>

Register(string)

[HttpPost("register")]
[Authorize(Roles = "Host Users")]
public Task Register(string email)

Parameters

email string

Returns

Task

Restart()

[HttpPost("restart")]
[Authorize(Roles = "Host Users")]
public void Restart()

Upgrade()

[HttpGet("upgrade")]
[Authorize(Roles = "Host Users")]
public Installation Upgrade()

Returns

Installation