GET | /RestApi/sitefinity/data-intelligence/persona |
---|
import Foundation
import ServiceStack
public class PersonaRequestDto : Codable
{
public var filter:String
required public init(){}
}
public class PersonaListViewModel : Codable
{
public var personаs:IList<Persona>
public var decAppUrl:String
required public init(){}
}
public class Persona : Codable
{
public var id:Int
public var name:String
public var Description:String
public var photoUrl:String
public var state:PersonaState
public var threshold:Int
public var createdOn:Date?
public var createdByUserId:String
public var modifiedOn:Date?
public var modifiedByUserId:String
public var toBeReinitializedAt:Date?
required public init(){}
}
public enum PersonaState : String, Codable
{
case Inactive
case Active
case ToBeDeleted
}
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/sitefinity/data-intelligence/persona HTTP/1.1 Host: www.asg.com.au Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"DecAppUrl":"String"}