| All Verbs | /api/timezones |
|---|
export class DataListItemModel
{
/** @description Guid of the list item PKID. */
// @ApiMember(DataType="Guid", Description="Guid of the list item PKID.", IsRequired=true, Name="ListItemId", ParameterType="query")
public ListItemId: string;
/** @description Name of the list item. */
// @ApiMember(DataType="string", Description="Name of the list item.", Name="Name", ParameterType="query")
public Name: string;
/** @description Short Version Name of the list item. */
// @ApiMember(DataType="string", Description="Short Version Name of the list item.", Name="ShortName", ParameterType="query")
public ShortName: string;
/** @description The primary image url */
// @ApiMember(DataType="string", Description="The primary image url", Name="PrimaryImagePath", ParameterType="query")
public PrimaryImagePath: string;
/** @description Record Status of the List Item (A=Active, I=Inactive, D=Deleted). */
// @ApiMember(DataType="string", Description="Record Status of the List Item (A=Active, I=Inactive, D=Deleted).", Name="RecordStatus", ParameterType="query")
public RecordStatus: string;
/** @description The order (if any) of this item in the list. */
// @ApiMember(DataType="int", Description="The order (if any) of this item in the list.", Name="Order", ParameterType="query")
public Order: number;
/** @description The owner of this item. */
// @ApiMember(DataType="Guid", Description="The owner of this item.", Name="OwnerContactId", ParameterType="query")
public OwnerContactId: string;
public ExtraValues: Object[];
public constructor(init?: Partial<DataListItemModel>) { (Object as any).assign(this, init); }
}
export class DataListModel
{
/** @description Guid of the List PKID. */
// @ApiMember(DataType="Guid", Description="Guid of the List PKID.", IsRequired=true, Name="ListId", ParameterType="query")
public ListId: string;
/** @description Name of the list. */
// @ApiMember(DataType="String", Description="Name of the list.", Name="Name", ParameterType="query")
public Name: string;
/** @description The owner of this item. */
// @ApiMember(DataType="Guid", Description="The owner of this item.", Name="OwnerContactId", ParameterType="query")
public OwnerContactId: string;
/** @description List Items in the list. */
// @ApiMember(DataType="List<DataListItemModel>", Description="List Items in the list.", Name="ListItems", ParameterType="query")
public DataListItems: DataListItemModel[];
public constructor(init?: Partial<DataListModel>) { (Object as any).assign(this, init); }
}
// @ApiResponse(Description="List of timezones matching the criteria")
export class GetTimezonesResponse
{
public Timezones: DataListModel;
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<GetTimezonesResponse>) { (Object as any).assign(this, init); }
}
/** @description Get a list of timezones */
// @Api(Description="Get a list of timezones")
export class GetTimezones
{
public constructor(init?: Partial<GetTimezones>) { (Object as any).assign(this, init); }
}
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.
POST /api/timezones HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Timezones":{"ListId":"00000000-0000-0000-0000-000000000000","Name":"String","OwnerContactId":"00000000-0000-0000-0000-000000000000","DataListItems":[{"ListItemId":"00000000-0000-0000-0000-000000000000","Name":"String","ShortName":"String","PrimaryImagePath":"String","RecordStatus":"String","Order":0,"OwnerContactId":"00000000-0000-0000-0000-000000000000","ExtraValues":[{}]}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}