| GET | /content/{ContentID} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetContent
{
public Integer contentID = null;
public Integer getContentID() { return contentID; }
public GetContent setContentID(Integer value) { this.contentID = value; return this; }
}
public static class GetContentResponse
{
public Content result = null;
public ResponseStatus responseStatus = null;
public Content getResult() { return result; }
public GetContentResponse setResult(Content value) { this.result = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetContentResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
public static class Content
{
public Integer contentID = null;
public Integer cType = null;
public Integer fkTaalID = null;
public String cNaam = null;
public String cPaginaTitel = null;
public String cSEOOmschrijving = null;
public String cSEOURL = null;
public Integer fkSEOFotoID = null;
public String cFocusTerm = null;
public String cTitel = null;
public String cTekst = null;
public String cIntro = null;
public Integer fkThumbnailID = null;
public Integer cOrder = null;
public Date laatsteUpdate = null;
public String laatsteUpdateDoor = null;
public Integer cHeaderFoto = null;
public String cHeaderTekst = null;
public String cC2ATekst = null;
public String cC2ATekstButtonLink = null;
public String cC2ATekstButtonTekst = null;
public String cIntroOverzicht = null;
public String cIntroOverOns = null;
public String cIntroKort = null;
public Date cDatum = null;
public String cAuteur = null;
public Integer getContentID() { return contentID; }
public Content setContentID(Integer value) { this.contentID = value; return this; }
public Integer getCType() { return cType; }
public Content setCType(Integer value) { this.cType = value; return this; }
public Integer getFkTaalID() { return fkTaalID; }
public Content setFkTaalID(Integer value) { this.fkTaalID = value; return this; }
public String getCNaam() { return cNaam; }
public Content setCNaam(String value) { this.cNaam = value; return this; }
public String getCPaginaTitel() { return cPaginaTitel; }
public Content setCPaginaTitel(String value) { this.cPaginaTitel = value; return this; }
public String getCSEOOmschrijving() { return cSEOOmschrijving; }
public Content setCSEOOmschrijving(String value) { this.cSEOOmschrijving = value; return this; }
public String getCSEOURL() { return cSEOURL; }
public Content setCSEOURL(String value) { this.cSEOURL = value; return this; }
public Integer getFkSEOFotoID() { return fkSEOFotoID; }
public Content setFkSEOFotoID(Integer value) { this.fkSEOFotoID = value; return this; }
public String getCFocusTerm() { return cFocusTerm; }
public Content setCFocusTerm(String value) { this.cFocusTerm = value; return this; }
public String getCTitel() { return cTitel; }
public Content setCTitel(String value) { this.cTitel = value; return this; }
public String getCTekst() { return cTekst; }
public Content setCTekst(String value) { this.cTekst = value; return this; }
public String getCIntro() { return cIntro; }
public Content setCIntro(String value) { this.cIntro = value; return this; }
public Integer getFkThumbnailID() { return fkThumbnailID; }
public Content setFkThumbnailID(Integer value) { this.fkThumbnailID = value; return this; }
public Integer getCOrder() { return cOrder; }
public Content setCOrder(Integer value) { this.cOrder = value; return this; }
public Date getLaatsteUpdate() { return laatsteUpdate; }
public Content setLaatsteUpdate(Date value) { this.laatsteUpdate = value; return this; }
public String getLaatsteUpdateDoor() { return laatsteUpdateDoor; }
public Content setLaatsteUpdateDoor(String value) { this.laatsteUpdateDoor = value; return this; }
public Integer getCHeaderFoto() { return cHeaderFoto; }
public Content setCHeaderFoto(Integer value) { this.cHeaderFoto = value; return this; }
public String getCHeaderTekst() { return cHeaderTekst; }
public Content setCHeaderTekst(String value) { this.cHeaderTekst = value; return this; }
public String getCC2ATekst() { return cC2ATekst; }
public Content setCC2ATekst(String value) { this.cC2ATekst = value; return this; }
public String getCC2ATekstButtonLink() { return cC2ATekstButtonLink; }
public Content setCC2ATekstButtonLink(String value) { this.cC2ATekstButtonLink = value; return this; }
public String getCC2ATekstButtonTekst() { return cC2ATekstButtonTekst; }
public Content setCC2ATekstButtonTekst(String value) { this.cC2ATekstButtonTekst = value; return this; }
public String getCIntroOverzicht() { return cIntroOverzicht; }
public Content setCIntroOverzicht(String value) { this.cIntroOverzicht = value; return this; }
public String getCIntroOverOns() { return cIntroOverOns; }
public Content setCIntroOverOns(String value) { this.cIntroOverOns = value; return this; }
public String getCIntroKort() { return cIntroKort; }
public Content setCIntroKort(String value) { this.cIntroKort = value; return this; }
public Date getCDatum() { return cDatum; }
public Content setCDatum(Date value) { this.cDatum = value; return this; }
public String getCAuteur() { return cAuteur; }
public Content setCAuteur(String value) { this.cAuteur = value; return this; }
}
}
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
}
}
}