<back to all web services

AddonMessage

The following routes are available for this service:
GET POST/RestApi/Sitefinity/packaging/add-on
import Foundation
import ServiceStack

public class AddonMessage : Codable
{
    public var id:String
    public var includeContent:Bool
    public var deactivate:Bool

    required public init(){}
}

public class AddonInfo : Codable
{
    public var id:String
    public var name:String
    public var isActive:Bool
    public var Description:String
    public var isDataImported:Bool
    public var version:String
    public var author:String
    public var dataImportedToSiteName:String
    public var entries:[AddOnEntry] = []
    public var hasErrorsOnContentImport:Bool
    public var hasErrorsOnStructureImport:Bool
    public var hasErrorsOnActivate:Bool

    required public init(){}
}

public class AddOnEntry : Codable
{
    public var displayName:String
    public var count:Int
    public var addonEntryType:AddOnEntryType

    required public init(){}
}

public enum AddOnEntryType : String, Codable
{
    case Content
    case Template
    case Custom
    case Module
    case Form
    case Classification
    case WebService
}


Swift AddonMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RestApi/Sitefinity/packaging/add-on HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	IncludeContent: False,
	Deactivate: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Name: String,
	IsActive: False,
	Description: String,
	IsDataImported: False,
	Version: String,
	Author: String,
	DataImportedToSiteName: String,
	HasErrorsOnContentImport: False,
	HasErrorsOnStructureImport: False,
	HasErrorsOnActivate: False
}