<back to all web services

AddonMessage

The following routes are available for this service:
GET POST/RestApi/Sitefinity/packaging/add-on
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.Packaging.Web.Services.Dto
Imports Telerik.Sitefinity.Packaging.Package

Namespace Global

    Namespace Telerik.Sitefinity.Packaging.Package

        Public Partial Class AddOnEntry
            Public Overridable Property DisplayName As String
            Public Overridable Property Count As Integer
            Public Overridable Property AddonEntryType As AddOnEntryType
        End Class

        Public Enum AddOnEntryType
            Content
            Template
            Custom
            [Module]
            Form
            Classification
            WebService
        End Enum
    End Namespace

    Namespace Telerik.Sitefinity.Packaging.Web.Services.Dto

        Public Partial Class AddonInfo
            Public Overridable Property Id As Guid
            Public Overridable Property Name As String
            Public Overridable Property IsActive As Boolean
            Public Overridable Property Description As String
            Public Overridable Property IsDataImported As Boolean
            Public Overridable Property Version As String
            Public Overridable Property Author As String
            Public Overridable Property DataImportedToSiteName As String
            Public Overridable Property Entries As ICollection(Of AddOnEntry)
            Public Overridable Property HasErrorsOnContentImport As Boolean
            Public Overridable Property HasErrorsOnStructureImport As Boolean
            Public Overridable Property HasErrorsOnActivate As Boolean
        End Class

        Public Partial Class AddonMessage
            Public Overridable Property Id As Guid
            Public Overridable Property IncludeContent As Boolean
            Public Overridable Property Deactivate As Boolean
        End Class
    End Namespace
End Namespace

VB.NET AddonMessage DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

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

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