<back to all web services

ContainerInfoMessage

The following routes are available for this service:
POST/RestApi/sitefinity/inlineediting/containersInfo
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.Services.InlineEditing.Messages
Imports Telerik.Sitefinity.Services.InlineEditing

Namespace Global

    Namespace Telerik.Sitefinity.Services.InlineEditing

        Public Partial Class ContainerInfoModel
            Public Sub New()
                Fields = New List(Of FieldModel)
            End Sub

            Public Overridable Property ItemId As String
            Public Overridable Property ItemType As String
            Public Overridable Property DisplayType As String
            Public Overridable Property Provider As String
            Public Overridable Property ItemStatus As LifecycleStatusModel
            Public Overridable Property IsPageControl As Boolean
            Public Overridable Property DetailsViewUrl As String
            Public Overridable Property Fields As List(Of FieldModel)
        End Class

        Public Partial Class FieldModel
            Public Overridable Property Name As String
            Public Overridable Property Required As String
            Public Overridable Property MinDate As String
            Public Overridable Property MaxDate As String
            Public Overridable Property MinLength As Integer
            Public Overridable Property MaxLength As Integer
            Public Overridable Property Pattern As String
            Public Overridable Property MinValue As Object
            Public Overridable Property MaxValue As Object
            Public Overridable Property RequiredViolationMessage As String
            Public Overridable Property MinLengthViolationMessage As String
            Public Overridable Property MaxLengthViolationMessage As String
        End Class

        Public Partial Class LifecycleStatusModel
            Public Overridable Property DisplayStatus As String
            Public Overridable Property IsAdmin As Boolean
            Public Overridable Property IsEditable As Boolean
            Public Overridable Property IsStatusEditable As Boolean
            Public Overridable Property IsLocked As Boolean
            Public Overridable Property IsPublished As Boolean
            Public Overridable Property IsLockedByMe As Boolean
            Public Overridable Property LockedByUsername As String
            Public Overridable Property WorkflowStatus As String
        End Class
    End Namespace

    Namespace Telerik.Sitefinity.Services.InlineEditing.Messages

        Public Partial Class ContainerInfoMessage
            Public Sub New()
                ContainersInfo = New List(Of ContainerInfoModel)
            End Sub

            Public Overridable Property PageId As String
            Public Overridable Property PageTitle As String
            Public Overridable Property ContainersInfo As List(Of ContainerInfoModel)
        End Class
    End Namespace
End Namespace

VB.NET ContainerInfoMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + 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>