CMS

<back to all web services

GetContent

The following routes are available for this service:
GET/content/{ContentID}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CMS.ServiceModel
Imports CMS.ServiceModel.Types

Namespace Global

    Namespace CMS.ServiceModel

        Public Partial Class GetContent
            Public Overridable Property ContentID As Integer
        End Class

        Public Partial Class GetContentResponse
            Public Overridable Property Result As Content
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace

    Namespace CMS.ServiceModel.Types

        Public Partial Class Content
            Public Overridable Property ContentID As Integer
            Public Overridable Property cType As Nullable(Of Integer)
            Public Overridable Property fkTaalID As Nullable(Of Integer)
            Public Overridable Property cNaam As String
            Public Overridable Property cPaginaTitel As String
            Public Overridable Property cSEOOmschrijving As String
            Public Overridable Property cSEOURL As String
            Public Overridable Property fkSEOFotoID As Nullable(Of Integer)
            Public Overridable Property cFocusTerm As String
            Public Overridable Property cTitel As String
            Public Overridable Property cTekst As String
            Public Overridable Property cIntro As String
            Public Overridable Property fkThumbnailID As Nullable(Of Integer)
            Public Overridable Property cOrder As Nullable(Of Integer)
            Public Overridable Property LaatsteUpdate As Date
            Public Overridable Property LaatsteUpdateDoor As String
            Public Overridable Property cHeaderFoto As Nullable(Of Integer)
            Public Overridable Property cHeaderTekst As String
            Public Overridable Property cC2ATekst As String
            Public Overridable Property cC2ATekstButtonLink As String
            Public Overridable Property cC2ATekstButtonTekst As String
            Public Overridable Property cIntroOverzicht As String
            Public Overridable Property cIntroOverOns As String
            Public Overridable Property cIntroKort As String
            Public Overridable Property cDatum As Nullable(Of Date)
            Public Overridable Property cAuteur As String
        End Class
    End Namespace
End Namespace

VB.NET GetContent DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"result":{"contentID":0,"cType":0,"fkTaalID":0,"cNaam":"String","cPaginaTitel":"String","cSEOOmschrijving":"String","cSEOURL":"String","fkSEOFotoID":0,"cFocusTerm":"String","cTitel":"String","cTekst":"String","cIntro":"String","fkThumbnailID":0,"cOrder":0,"laatsteUpdate":"\/Date(-62135596800000-0000)\/","laatsteUpdateDoor":"String","cHeaderFoto":0,"cHeaderTekst":"String","cC2ATekst":"String","cC2ATekstButtonLink":"String","cC2ATekstButtonTekst":"String","cIntroOverzicht":"String","cIntroOverOns":"String","cIntroKort":"String","cDatum":"\/Date(-62135596800000-0000)\/","cAuteur":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}