| GET,POST | /{Workspace}/Undelete |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
/**
* Handles undelete of data.
*/
open class Undelete
{
var Workspace:String? = null
var DeletedItems:ArrayList<DeletedItem> = ArrayList<DeletedItem>()
var DeletedItemsToRestore:ArrayList<DeletedItem> = ArrayList<DeletedItem>()
}
open class DeletedItem
{
var ObjectId:String? = null
var Class:String? = null
var Name:String? = null
var Type:String? = null
var DeletedBy:String? = null
var DeletedDate:String? = null
var Created:String? = null
var LastUpdated:String? = null
}
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.
POST /{Workspace}/Undelete HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Workspace: String,
DeletedItems:
[
{
ObjectId: String,
Class: String,
Name: String,
Type: String,
DeletedBy: String,
DeletedDate: String,
Created: String,
LastUpdated: String
}
],
DeletedItemsToRestore:
[
{
ObjectId: String,
Class: String,
Name: String,
Type: String,
DeletedBy: String,
DeletedDate: String,
Created: String,
LastUpdated: String
}
]
}