CMS

<back to all web services

GetContent

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

namespace CMS.ServiceModel
{
    public partial class GetContent
    {
        public virtual int ContentID { get; set; }
    }

    public partial class GetContentResponse
    {
        public virtual Content Result { get; set; }
        public virtual ResponseStatus ResponseStatus { get; set; }
    }

}

namespace CMS.ServiceModel.Types
{
    public partial class Content
    {
        public virtual int ContentID { get; set; }
        public virtual int? cType { get; set; }
        public virtual int? fkTaalID { get; set; }
        public virtual string cNaam { get; set; }
        public virtual string cPaginaTitel { get; set; }
        public virtual string cSEOOmschrijving { get; set; }
        public virtual string cSEOURL { get; set; }
        public virtual int? fkSEOFotoID { get; set; }
        public virtual string cFocusTerm { get; set; }
        public virtual string cTitel { get; set; }
        public virtual string cTekst { get; set; }
        public virtual string cIntro { get; set; }
        public virtual int? fkThumbnailID { get; set; }
        public virtual int? cOrder { get; set; }
        public virtual DateTime LaatsteUpdate { get; set; }
        public virtual string LaatsteUpdateDoor { get; set; }
        public virtual int? cHeaderFoto { get; set; }
        public virtual string cHeaderTekst { get; set; }
        public virtual string cC2ATekst { get; set; }
        public virtual string cC2ATekstButtonLink { get; set; }
        public virtual string cC2ATekstButtonTekst { get; set; }
        public virtual string cIntroOverzicht { get; set; }
        public virtual string cIntroOverOns { get; set; }
        public virtual string cIntroKort { get; set; }
        public virtual DateTime? cDatum { get; set; }
        public virtual string cAuteur { get; set; }
    }

}

C# GetContent DTOs

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

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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: 0001-01-01,
		laatsteUpdateDoor: String,
		cHeaderFoto: 0,
		cHeaderTekst: String,
		cC2ATekst: String,
		cC2ATekstButtonLink: String,
		cC2ATekstButtonTekst: String,
		cIntroOverzicht: String,
		cIntroOverOns: String,
		cIntroKort: String,
		cDatum: 0001-01-01,
		cAuteur: String
	},
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}