<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 .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}