GET | /RestApi/recycle-bin/items/{id} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetRecycleBinItem extends RecycelBinItemRequestBase
{
}
public static class RecycelBinItemRequestBase
{
public UUID Id = null;
public UUID getId() { return Id; }
public RecycelBinItemRequestBase setId(UUID value) { this.Id = value; return this; }
}
public static class RecycleBinItemProxy
{
public UUID Id = null;
public String ProviderName = null;
public String ItemTypeName = null;
public String DisplayTypeName = null;
public UUID DataItemId = null;
public String ItemTitle = null;
public String Status = null;
public String StatusText = null;
public String ItemLanguage = null;
public String OwnerName = null;
public Date DateCreated = null;
public String ParentTypeName = null;
public String ParentTitlesPath = null;
public UUID getId() { return Id; }
public RecycleBinItemProxy setId(UUID value) { this.Id = value; return this; }
public String getProviderName() { return ProviderName; }
public RecycleBinItemProxy setProviderName(String value) { this.ProviderName = value; return this; }
public String getItemTypeName() { return ItemTypeName; }
public RecycleBinItemProxy setItemTypeName(String value) { this.ItemTypeName = value; return this; }
public String getDisplayTypeName() { return DisplayTypeName; }
public RecycleBinItemProxy setDisplayTypeName(String value) { this.DisplayTypeName = value; return this; }
public UUID getDataItemId() { return DataItemId; }
public RecycleBinItemProxy setDataItemId(UUID value) { this.DataItemId = value; return this; }
public String getItemTitle() { return ItemTitle; }
public RecycleBinItemProxy setItemTitle(String value) { this.ItemTitle = value; return this; }
public String getStatus() { return Status; }
public RecycleBinItemProxy setStatus(String value) { this.Status = value; return this; }
public String getStatusText() { return StatusText; }
public RecycleBinItemProxy setStatusText(String value) { this.StatusText = value; return this; }
public String getItemLanguage() { return ItemLanguage; }
public RecycleBinItemProxy setItemLanguage(String value) { this.ItemLanguage = value; return this; }
public String getOwnerName() { return OwnerName; }
public RecycleBinItemProxy setOwnerName(String value) { this.OwnerName = value; return this; }
public Date getDateCreated() { return DateCreated; }
public RecycleBinItemProxy setDateCreated(Date value) { this.DateCreated = value; return this; }
public String getParentTypeName() { return ParentTypeName; }
public RecycleBinItemProxy setParentTypeName(String value) { this.ParentTypeName = value; return this; }
public String getParentTitlesPath() { return ParentTitlesPath; }
public RecycleBinItemProxy setParentTitlesPath(String value) { this.ParentTitlesPath = 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 /RestApi/recycle-bin/items/{id} HTTP/1.1 Host: www.asg.com.au Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <RecycleBinItemProxy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.RecycleBin.Services.Dto"> <DataItemId>00000000-0000-0000-0000-000000000000</DataItemId> <DateCreated>0001-01-01T00:00:00</DateCreated> <DisplayTypeName>String</DisplayTypeName> <Id>00000000-0000-0000-0000-000000000000</Id> <ItemLanguage>String</ItemLanguage> <ItemTitle>String</ItemTitle> <ItemTypeName>String</ItemTypeName> <OwnerName>String</OwnerName> <ParentTitlesPath>String</ParentTitlesPath> <ParentTypeName>String</ParentTypeName> <ProviderName>String</ProviderName> <Status>String</Status> <StatusText>String</StatusText> </RecycleBinItemProxy>