| All Verbs | /api/timezones |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eros.Subtle.Canvara.WebAPIModel.ServiceModel
Imports Eros.Saguna.Common.WebAPI.ServiceModel
Namespace Global
Namespace Eros.Saguna.Common.WebAPI.ServiceModel
Public Partial Class DataListItemModel
'''<Summary>
'''Guid of the list item PKID.
'''</Summary>
<ApiMember(DataType:="Guid", Description:="Guid of the list item PKID.", IsRequired:=true, Name:="ListItemId", ParameterType:="query")>
Public Overridable Property ListItemId As Guid
'''<Summary>
'''Name of the list item.
'''</Summary>
<ApiMember(DataType:="string", Description:="Name of the list item.", Name:="Name", ParameterType:="query")>
Public Overridable Property Name As String
'''<Summary>
'''Short Version Name of the list item.
'''</Summary>
<ApiMember(DataType:="string", Description:="Short Version Name of the list item.", Name:="ShortName", ParameterType:="query")>
Public Overridable Property ShortName As String
'''<Summary>
'''The primary image url
'''</Summary>
<ApiMember(DataType:="string", Description:="The primary image url", Name:="PrimaryImagePath", ParameterType:="query")>
Public Overridable Property PrimaryImagePath As String
'''<Summary>
'''Record Status of the List Item (A=Active, I=Inactive, D=Deleted).
'''</Summary>
<ApiMember(DataType:="string", Description:="Record Status of the List Item (A=Active, I=Inactive, D=Deleted).", Name:="RecordStatus", ParameterType:="query")>
Public Overridable Property RecordStatus As String
'''<Summary>
'''The order (if any) of this item in the list.
'''</Summary>
<ApiMember(DataType:="int", Description:="The order (if any) of this item in the list.", Name:="Order", ParameterType:="query")>
Public Overridable Property Order As Integer
'''<Summary>
'''The owner of this item.
'''</Summary>
<ApiMember(DataType:="Guid", Description:="The owner of this item.", Name:="OwnerContactId", ParameterType:="query")>
Public Overridable Property OwnerContactId As Guid
Public Overridable Property ExtraValues As List(Of Object)
End Class
Public Partial Class DataListModel
'''<Summary>
'''Guid of the List PKID.
'''</Summary>
<ApiMember(DataType:="Guid", Description:="Guid of the List PKID.", IsRequired:=true, Name:="ListId", ParameterType:="query")>
Public Overridable Property ListId As Guid
'''<Summary>
'''Name of the list.
'''</Summary>
<ApiMember(DataType:="String", Description:="Name of the list.", Name:="Name", ParameterType:="query")>
Public Overridable Property Name As String
'''<Summary>
'''The owner of this item.
'''</Summary>
<ApiMember(DataType:="Guid", Description:="The owner of this item.", Name:="OwnerContactId", ParameterType:="query")>
Public Overridable Property OwnerContactId As Guid
'''<Summary>
'''List Items in the list.
'''</Summary>
<ApiMember(DataType:="List<DataListItemModel>", Description:="List Items in the list.", Name:="ListItems", ParameterType:="query")>
Public Overridable Property DataListItems As List(Of DataListItemModel)
End Class
End Namespace
Namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
'''<Summary>
'''Get a list of timezones
'''</Summary>
<Api(Description:="Get a list of timezones")>
Public Partial Class GetTimezones
End Class
<ApiResponse(Description:="List of timezones matching the criteria")>
Public Partial Class GetTimezonesResponse
Public Overridable Property Timezones As DataListModel
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
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"}}}