<back to all web services

AddonMessage

The following routes are available for this service:
GET POST/RestApi/Sitefinity/packaging/add-on
import java.math.*
import java.util.*
import net.servicestack.client.*


open class AddonMessage
{
    var Id:UUID? = null
    var IncludeContent:Boolean? = null
    var Deactivate:Boolean? = null
}

open class AddonInfo
{
    var Id:UUID? = null
    var Name:String? = null
    var IsActive:Boolean? = null
    var Description:String? = null
    var IsDataImported:Boolean? = null
    var Version:String? = null
    var Author:String? = null
    var DataImportedToSiteName:String? = null
    var Entries:ArrayList<AddOnEntry> = ArrayList<AddOnEntry>()
    var HasErrorsOnContentImport:Boolean? = null
    var HasErrorsOnStructureImport:Boolean? = null
    var HasErrorsOnActivate:Boolean? = null
}

open class AddOnEntry
{
    var DisplayName:String? = null
    var Count:Int? = null
    var AddonEntryType:AddOnEntryType? = null
}

enum class AddOnEntryType
{
    Content,
    Template,
    Custom,
    Module,
    Form,
    Classification,
    WebService,
}

Kotlin AddonMessage DTOs

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

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
Content-Length: length

{"IncludeContent":false,"Deactivate":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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