CMS

<back to all web services

GetContent

The following routes are available for this service:
GET/content/{ContentID}
namespace CMS.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Content() = 
        member val ContentID:Int32 = new Int32() with get,set
        member val cType:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val fkTaalID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val cNaam:String = null with get,set
        member val cPaginaTitel:String = null with get,set
        member val cSEOOmschrijving:String = null with get,set
        member val cSEOURL:String = null with get,set
        member val fkSEOFotoID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val cFocusTerm:String = null with get,set
        member val cTitel:String = null with get,set
        member val cTekst:String = null with get,set
        member val cIntro:String = null with get,set
        member val fkThumbnailID:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val cOrder:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val LaatsteUpdate:DateTime = new DateTime() with get,set
        member val LaatsteUpdateDoor:String = null with get,set
        member val cHeaderFoto:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val cHeaderTekst:String = null with get,set
        member val cC2ATekst:String = null with get,set
        member val cC2ATekstButtonLink:String = null with get,set
        member val cC2ATekstButtonTekst:String = null with get,set
        member val cIntroOverzicht:String = null with get,set
        member val cIntroOverOns:String = null with get,set
        member val cIntroKort:String = null with get,set
        member val cDatum:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val cAuteur:String = null with get,set

    [<AllowNullLiteral>]
    type GetContentResponse() = 
        member val Result:Content = null with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type GetContent() = 
        member val ContentID:Int32 = new Int32() with get,set

F# GetContent 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.

GET /content/{ContentID} HTTP/1.1 
Host: cms.exitus-ict.nl 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetContentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.ServiceModel">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/CMS.ServiceModel.Types">
    <d2p1:ContentID>0</d2p1:ContentID>
    <d2p1:LaatsteUpdate>0001-01-01T00:00:00</d2p1:LaatsteUpdate>
    <d2p1:LaatsteUpdateDoor>String</d2p1:LaatsteUpdateDoor>
    <d2p1:cAuteur>String</d2p1:cAuteur>
    <d2p1:cC2ATekst>String</d2p1:cC2ATekst>
    <d2p1:cC2ATekstButtonLink>String</d2p1:cC2ATekstButtonLink>
    <d2p1:cC2ATekstButtonTekst>String</d2p1:cC2ATekstButtonTekst>
    <d2p1:cDatum>0001-01-01T00:00:00</d2p1:cDatum>
    <d2p1:cFocusTerm>String</d2p1:cFocusTerm>
    <d2p1:cHeaderFoto>0</d2p1:cHeaderFoto>
    <d2p1:cHeaderTekst>String</d2p1:cHeaderTekst>
    <d2p1:cIntro>String</d2p1:cIntro>
    <d2p1:cIntroKort>String</d2p1:cIntroKort>
    <d2p1:cIntroOverOns>String</d2p1:cIntroOverOns>
    <d2p1:cIntroOverzicht>String</d2p1:cIntroOverzicht>
    <d2p1:cNaam>String</d2p1:cNaam>
    <d2p1:cOrder>0</d2p1:cOrder>
    <d2p1:cPaginaTitel>String</d2p1:cPaginaTitel>
    <d2p1:cSEOOmschrijving>String</d2p1:cSEOOmschrijving>
    <d2p1:cSEOURL>String</d2p1:cSEOURL>
    <d2p1:cTekst>String</d2p1:cTekst>
    <d2p1:cTitel>String</d2p1:cTitel>
    <d2p1:cType>0</d2p1:cType>
    <d2p1:fkSEOFotoID>0</d2p1:fkSEOFotoID>
    <d2p1:fkTaalID>0</d2p1:fkTaalID>
    <d2p1:fkThumbnailID>0</d2p1:fkThumbnailID>
  </Result>
</GetContentResponse>