GET | /RestApi/sitefinity/data-intelligence/persona |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class PersonaRequestDto
{
var Filter:String? = null
}
open class PersonaListViewModel
{
var Personаs:IList<Persona>? = null
var DecAppUrl:String? = null
}
open class Persona
{
var Id:Int? = null
var Name:String? = null
var Description:String? = null
var PhotoUrl:String? = null
var State:PersonaState? = null
var Threshold:Int? = null
var CreatedOn:Date? = null
var CreatedByUserId:String? = null
var ModifiedOn:Date? = null
var ModifiedByUserId:String? = null
var ToBeReinitializedAt:Date? = null
}
enum class PersonaState
{
Inactive,
Active,
ToBeDeleted,
}
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 /RestApi/sitefinity/data-intelligence/persona HTTP/1.1 Host: www.asg.com.au Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { DecAppUrl: String }