GET | /RestApi/sitefinity/data-intelligence/persona |
---|
export class PersonaRequestDto
{
public Filter: string;
public constructor(init?: Partial<PersonaRequestDto>) { (Object as any).assign(this, init); }
}
export enum PersonaState
{
Inactive = 'Inactive',
Active = 'Active',
ToBeDeleted = 'ToBeDeleted',
}
export class Persona
{
public Id: number;
public Name: string;
public Description: string;
public PhotoUrl: string;
public State: PersonaState;
public Threshold: number;
public CreatedOn?: string;
public CreatedByUserId: string;
public ModifiedOn?: string;
public ModifiedByUserId: string;
public ToBeReinitializedAt?: string;
public constructor(init?: Partial<Persona>) { (Object as any).assign(this, init); }
}
export class PersonaListViewModel
{
public Personаs: IList<Persona>;
public DecAppUrl: string;
public constructor(init?: Partial<PersonaListViewModel>) { (Object as any).assign(this, init); }
}
TypeScript PersonaRequestDto DTOs
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"}