<back to all web services

AddonMessage

The following routes are available for this service:
GET POST/RestApi/Sitefinity/packaging/add-on
namespace Telerik.Sitefinity.Packaging.Package

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type AddonMessage() = 
        member val Id:Guid = new Guid() with get,set
        member val IncludeContent:Boolean = new Boolean() with get,set
        member val Deactivate:Boolean = new Boolean() with get,set

    type AddOnEntryType =
        | Content = 0
        | Template = 1
        | Custom = 2
        | Module = 3
        | Form = 4
        | Classification = 5
        | WebService = 6

    [<AllowNullLiteral>]
    type AddOnEntry() = 
        member val DisplayName:String = null with get,set
        member val Count:Int32 = new Int32() with get,set
        member val AddonEntryType:AddOnEntryType = new AddOnEntryType() with get,set

    [<AllowNullLiteral>]
    type AddonInfo() = 
        member val Id:Guid = new Guid() with get,set
        member val Name:String = null with get,set
        member val IsActive:Boolean = new Boolean() with get,set
        member val Description:String = null with get,set
        member val IsDataImported:Boolean = new Boolean() with get,set
        member val Version:String = null with get,set
        member val Author:String = null with get,set
        member val DataImportedToSiteName:String = null with get,set
        member val Entries:ICollection<AddOnEntry> = null with get,set
        member val HasErrorsOnContentImport:Boolean = new Boolean() with get,set
        member val HasErrorsOnStructureImport:Boolean = new Boolean() with get,set
        member val HasErrorsOnActivate:Boolean = new Boolean() with get,set

F# 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
}