POST | /RestApi/sitefinity/inlineediting/containersInfo |
---|
"use strict";
export class LifecycleStatusModel {
/** @param {{DisplayStatus?:string,IsAdmin?:boolean,IsEditable?:boolean,IsStatusEditable?:boolean,IsLocked?:boolean,IsPublished?:boolean,IsLockedByMe?:boolean,LockedByUsername?:string,WorkflowStatus?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
DisplayStatus;
/** @type {boolean} */
IsAdmin;
/** @type {boolean} */
IsEditable;
/** @type {boolean} */
IsStatusEditable;
/** @type {boolean} */
IsLocked;
/** @type {boolean} */
IsPublished;
/** @type {boolean} */
IsLockedByMe;
/** @type {string} */
LockedByUsername;
/** @type {string} */
WorkflowStatus;
}
export class FieldModel {
/** @param {{Name?:string,Required?:string,MinDate?:string,MaxDate?:string,MinLength?:number,MaxLength?:number,Pattern?:string,MinValue?:Object,MaxValue?:Object,RequiredViolationMessage?:string,MinLengthViolationMessage?:string,MaxLengthViolationMessage?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Name;
/** @type {string} */
Required;
/** @type {string} */
MinDate;
/** @type {string} */
MaxDate;
/** @type {number} */
MinLength;
/** @type {number} */
MaxLength;
/** @type {string} */
Pattern;
/** @type {Object} */
MinValue;
/** @type {Object} */
MaxValue;
/** @type {string} */
RequiredViolationMessage;
/** @type {string} */
MinLengthViolationMessage;
/** @type {string} */
MaxLengthViolationMessage;
}
export class ContainerInfoModel {
/** @param {{ItemId?:string,ItemType?:string,DisplayType?:string,Provider?:string,ItemStatus?:LifecycleStatusModel,IsPageControl?:boolean,DetailsViewUrl?:string,Fields?:FieldModel[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
ItemId;
/** @type {string} */
ItemType;
/** @type {string} */
DisplayType;
/** @type {string} */
Provider;
/** @type {LifecycleStatusModel} */
ItemStatus;
/** @type {boolean} */
IsPageControl;
/** @type {string} */
DetailsViewUrl;
/** @type {FieldModel[]} */
Fields;
}
export class ContainerInfoMessage {
/** @param {{PageId?:string,PageTitle?:string,ContainersInfo?:ContainerInfoModel[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
PageId;
/** @type {string} */
PageTitle;
/** @type {ContainerInfoModel[]} */
ContainersInfo;
}
JavaScript ContainerInfoMessage DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RestApi/sitefinity/inlineediting/containersInfo HTTP/1.1
Host: www.asg.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ContainerInfoMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.InlineEditing.Messages">
<ContainersInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.InlineEditing">
<d2p1:ContainerInfoModel>
<d2p1:DetailsViewUrl>String</d2p1:DetailsViewUrl>
<d2p1:DisplayType>String</d2p1:DisplayType>
<d2p1:Fields>
<d2p1:FieldModel>
<d2p1:MaxDate>String</d2p1:MaxDate>
<d2p1:MaxLength>0</d2p1:MaxLength>
<d2p1:MaxLengthViolationMessage>String</d2p1:MaxLengthViolationMessage>
<d2p1:MaxValue />
<d2p1:MinDate>String</d2p1:MinDate>
<d2p1:MinLength>0</d2p1:MinLength>
<d2p1:MinLengthViolationMessage>String</d2p1:MinLengthViolationMessage>
<d2p1:MinValue />
<d2p1:Name>String</d2p1:Name>
<d2p1:Pattern>String</d2p1:Pattern>
<d2p1:Required>String</d2p1:Required>
<d2p1:RequiredViolationMessage>String</d2p1:RequiredViolationMessage>
</d2p1:FieldModel>
</d2p1:Fields>
<d2p1:IsPageControl>false</d2p1:IsPageControl>
<d2p1:ItemId>String</d2p1:ItemId>
<d2p1:ItemStatus>
<d2p1:DisplayStatus>String</d2p1:DisplayStatus>
<d2p1:IsAdmin>false</d2p1:IsAdmin>
<d2p1:IsEditable>false</d2p1:IsEditable>
<d2p1:IsLocked>false</d2p1:IsLocked>
<d2p1:IsLockedByMe>false</d2p1:IsLockedByMe>
<d2p1:IsPublished>false</d2p1:IsPublished>
<d2p1:IsStatusEditable>false</d2p1:IsStatusEditable>
<d2p1:LockedByUsername>String</d2p1:LockedByUsername>
<d2p1:WorkflowStatus>String</d2p1:WorkflowStatus>
</d2p1:ItemStatus>
<d2p1:ItemType>String</d2p1:ItemType>
<d2p1:Provider>String</d2p1:Provider>
</d2p1:ContainerInfoModel>
</ContainersInfo>
<PageId>String</PageId>
<PageTitle>String</PageTitle>
</ContainerInfoMessage>