| GET | /content/list |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetContents
{
}
public static class GetContentsResponse
{
public ArrayList<Content> results = null;
public ResponseStatus responseStatus = null;
public ArrayList<Content> getResults() { return results; }
public GetContentsResponse setResults(ArrayList<Content> value) { this.results = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetContentsResponse 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 .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /content/list HTTP/1.1 Host: cms.exitus-ict.nl Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetContentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.ServiceModel">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/CMS.ServiceModel.Types">
<d2p1:Content>
<d2p1:ContentID>0</d2p1:ContentID>
<d2p1:LaatsteUpdate>0001-01-01T00:00:00</d2p1:LaatsteUpdate>
<d2p1:LaatsteUpdateDoor>String</d2p1:LaatsteUpdateDoor>
<d2p1:cAuteur>String</d2p1:cAuteur>
<d2p1:cC2ATekst>String</d2p1:cC2ATekst>
<d2p1:cC2ATekstButtonLink>String</d2p1:cC2ATekstButtonLink>
<d2p1:cC2ATekstButtonTekst>String</d2p1:cC2ATekstButtonTekst>
<d2p1:cDatum>0001-01-01T00:00:00</d2p1:cDatum>
<d2p1:cFocusTerm>String</d2p1:cFocusTerm>
<d2p1:cHeaderFoto>0</d2p1:cHeaderFoto>
<d2p1:cHeaderTekst>String</d2p1:cHeaderTekst>
<d2p1:cIntro>String</d2p1:cIntro>
<d2p1:cIntroKort>String</d2p1:cIntroKort>
<d2p1:cIntroOverOns>String</d2p1:cIntroOverOns>
<d2p1:cIntroOverzicht>String</d2p1:cIntroOverzicht>
<d2p1:cNaam>String</d2p1:cNaam>
<d2p1:cOrder>0</d2p1:cOrder>
<d2p1:cPaginaTitel>String</d2p1:cPaginaTitel>
<d2p1:cSEOOmschrijving>String</d2p1:cSEOOmschrijving>
<d2p1:cSEOURL>String</d2p1:cSEOURL>
<d2p1:cTekst>String</d2p1:cTekst>
<d2p1:cTitel>String</d2p1:cTitel>
<d2p1:cType>0</d2p1:cType>
<d2p1:fkSEOFotoID>0</d2p1:fkSEOFotoID>
<d2p1:fkTaalID>0</d2p1:fkTaalID>
<d2p1:fkThumbnailID>0</d2p1:fkThumbnailID>
</d2p1:Content>
</Results>
</GetContentsResponse>