View Source
Class PackageController
A controller used for managing packages in the back office
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class PackageController : UmbracoAuthorizedJsonController, IDiscoverable
Methods
View Source
DeleteCreatedPackage(Int32)
Deletes a created package
Declaration
public IHttpActionResult DeleteCreatedPackage(int packageId)
Parameters
Type |
Name |
Description |
System.Int32 |
packageId |
|
Returns
Type |
Description |
IHttpActionResult |
|
View Source
DownloadCreatedPackage(Int32)
Declaration
public HttpResponseMessage DownloadCreatedPackage(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
HttpResponseMessage |
|
View Source
GetCreatedPackageById(Int32)
Declaration
public PackageDefinition GetCreatedPackageById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetCreatedPackages()
Declaration
public IEnumerable<PackageDefinition> GetCreatedPackages()
Returns
View Source
GetEmpty()
Declaration
public PackageDefinition GetEmpty()
Returns
View Source
GetInstalled()
Returns all installed packages - only shows their latest versions
Declaration
public IEnumerable<PackageDefinition> GetInstalled()
Returns
View Source
GetInstalledPackageById(Int32)
Declaration
public PackageDefinition GetInstalledPackageById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
PostSavePackage(PackageDefinition)
Creates or updates a package
Declaration
public PackageDefinition PostSavePackage(PackageDefinition model)
Parameters
Returns