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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"providerName":"String","itemTypeName":"String","displayTypeName":"String","itemTitle":"String","status":"String","statusText":"String","itemLanguage":"String","ownerName":"String","dateCreated":"\/Date(-62135596800000-0000)\/","parentTypeName":"String","parentTitlesPath":"String"}