CMS

<back to all web services

GetContent

The following routes are available for this service:
GET/content/{ContentID}

export class Content
{
    public contentID?: number;
    public cType?: number;
    public fkTaalID?: number;
    public cNaam?: string;
    public cPaginaTitel?: string;
    public cSEOOmschrijving?: string;
    public cSEOURL?: string;
    public fkSEOFotoID?: number;
    public cFocusTerm?: string;
    public cTitel?: string;
    public cTekst?: string;
    public cIntro?: string;
    public fkThumbnailID?: number;
    public cOrder?: number;
    public laatsteUpdate?: string;
    public laatsteUpdateDoor?: string;
    public cHeaderFoto?: number;
    public cHeaderTekst?: string;
    public cC2ATekst?: string;
    public cC2ATekstButtonLink?: string;
    public cC2ATekstButtonTekst?: string;
    public cIntroOverzicht?: string;
    public cIntroOverOns?: string;
    public cIntroKort?: string;
    public cDatum?: string;
    public cAuteur?: string;

    public constructor(init?: Partial<Content>) { (Object as any).assign(this, init); }
}

export class GetContentResponse
{
    public result?: Content;
    public responseStatus?: ResponseStatus;

    public constructor(init?: Partial<GetContentResponse>) { (Object as any).assign(this, init); }
}

export class GetContent
{
    public contentID?: number;

    public constructor(init?: Partial<GetContent>) { (Object as any).assign(this, init); }
}

TypeScript 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"}}}