POST | /RestApi/sitefinity/inlineediting/containersInfo |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class ContainerInfoMessage
{
var PageId:String? = null
var PageTitle:String? = null
var ContainersInfo:ArrayList<ContainerInfoModel> = ArrayList<ContainerInfoModel>()
}
open class ContainerInfoModel
{
var ItemId:String? = null
var ItemType:String? = null
var DisplayType:String? = null
var Provider:String? = null
var ItemStatus:LifecycleStatusModel? = null
var IsPageControl:Boolean? = null
var DetailsViewUrl:String? = null
var Fields:ArrayList<FieldModel> = ArrayList<FieldModel>()
}
open class LifecycleStatusModel
{
var DisplayStatus:String? = null
var IsAdmin:Boolean? = null
var IsEditable:Boolean? = null
var IsStatusEditable:Boolean? = null
var IsLocked:Boolean? = null
var IsPublished:Boolean? = null
var IsLockedByMe:Boolean? = null
var LockedByUsername:String? = null
var WorkflowStatus:String? = null
}
open class FieldModel
{
var Name:String? = null
var Required:String? = null
var MinDate:String? = null
var MaxDate:String? = null
var MinLength:Int? = null
var MaxLength:Int? = null
var Pattern:String? = null
var MinValue:Object? = null
var MaxValue:Object? = null
var RequiredViolationMessage:String? = null
var MinLengthViolationMessage:String? = null
var MaxLengthViolationMessage:String? = null
}
Kotlin ContainerInfoMessage DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PageId: String,
PageTitle: String,
ContainersInfo:
[
{
ItemId: String,
ItemType: String,
DisplayType: String,
Provider: String,
ItemStatus:
{
DisplayStatus: String,
IsAdmin: False,
IsEditable: False,
IsStatusEditable: False,
IsLocked: False,
IsPublished: False,
IsLockedByMe: False,
LockedByUsername: String,
WorkflowStatus: String
},
IsPageControl: False,
DetailsViewUrl: String,
Fields:
[
{
Name: String,
Required: String,
MinDate: String,
MaxDate: String,
MinLength: 0,
MaxLength: 0,
Pattern: String,
MinValue: {},
MaxValue: {},
RequiredViolationMessage: String,
MinLengthViolationMessage: String,
MaxLengthViolationMessage: String
}
]
}
]
}