Table of Contents

Class PackageController

Namespace
Oqtane.Controllers
Assembly
Oqtane.Server.dll
[Route("api/[controller]")]
public class PackageController : Controller
Inheritance
PackageController

Constructors

PackageController(IInstallationManager, IWebHostEnvironment, IConfigManager, ILogManager)

public PackageController(IInstallationManager installationManager, IWebHostEnvironment environment, IConfigManager configManager, ILogManager logger)

Parameters

installationManager IInstallationManager
environment IWebHostEnvironment
configManager IConfigManager
logger ILogManager

Methods

Get(string, string, string, string, string)

[HttpGet]
public Task<IEnumerable<Package>> Get(string type, string search, string price, string package, string sort)

Parameters

type string
search string
price string
package string
sort string

Returns

Task<IEnumerable<Package>>

GetPackageUpdates(string)

[HttpGet("updates")]
public Task<IEnumerable<Package>> GetPackageUpdates(string type)

Parameters

type string

Returns

Task<IEnumerable<Package>>

InstallPackages()

[HttpGet("install")]
[Authorize(Roles = "Host Users")]
public void InstallPackages()

Post(string, string, string, string)

[HttpPost]
[Authorize(Roles = "Host Users")]
public Task<Package> Post(string packageid, string version, string download, string install)

Parameters

packageid string
version string
download string
install string

Returns

Task<Package>