GET POST | /RestApi/Sitefinity/packaging/add-on |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Telerik.Sitefinity.Packaging.Web.Services.Dto;
using Telerik.Sitefinity.Packaging.Package;
namespace Telerik.Sitefinity.Packaging.Package
{
public partial class AddOnEntry
{
public virtual string DisplayName { get; set; }
public virtual int Count { get; set; }
public virtual AddOnEntryType AddonEntryType { get; set; }
}
public enum AddOnEntryType
{
Content,
Template,
Custom,
Module,
Form,
Classification,
WebService,
}
}
namespace Telerik.Sitefinity.Packaging.Web.Services.Dto
{
public partial class AddonInfo
{
public virtual Guid Id { get; set; }
public virtual string Name { get; set; }
public virtual bool IsActive { get; set; }
public virtual string Description { get; set; }
public virtual bool IsDataImported { get; set; }
public virtual string Version { get; set; }
public virtual string Author { get; set; }
public virtual string DataImportedToSiteName { get; set; }
public virtual ICollection<AddOnEntry> Entries { get; set; }
public virtual bool HasErrorsOnContentImport { get; set; }
public virtual bool HasErrorsOnStructureImport { get; set; }
public virtual bool HasErrorsOnActivate { get; set; }
}
public partial class AddonMessage
{
public virtual Guid Id { get; set; }
public virtual bool IncludeContent { get; set; }
public virtual bool Deactivate { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
Content-Length: length
{"IncludeContent":false,"Deactivate":false}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Name":"String","IsActive":false,"Description":"String","IsDataImported":false,"Version":"String","Author":"String","DataImportedToSiteName":"String","HasErrorsOnContentImport":false,"HasErrorsOnStructureImport":false,"HasErrorsOnActivate":false}