| 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); }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}