| GET | /{Workspace}/WorkspaceOptions/ |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Workspaces
Namespace Global
Namespace Field2Office.API.Model.Workspaces
Public Partial Class Country
Public Overridable Property Name As String
Public Overridable Property Id As String
End Class
Public Partial Class TimeZone
Public Overridable Property Name As String
Public Overridable Property Id As String
Public Overridable Property IanaId As String
Public Overridable Property Abbreviation As String
End Class
Public Partial Class UserTypeOption
Public Overridable Property Name As String
Public Overridable Property Id As String
End Class
Public Partial Class WorkspaceOptions
Public Sub New()
TimeZones = New List(Of TimeZone)
Countries = New List(Of Country)
UserTypes = New List(Of UserTypeOption)
End Sub
Public Overridable Property Workspace As String
Public Overridable Property TimeZones As List(Of TimeZone)
Public Overridable Property Countries As List(Of Country)
Public Overridable Property UserTypes As List(Of UserTypeOption)
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.
GET /{Workspace}/WorkspaceOptions/ HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/json