sfgboxapi

<back to all web services

GrowersListLookup

Requires Authentication
The following routes are available for this service:
GET/growerslist
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports sfgboxapi.ServiceModel
Imports sfgboxapi.ServiceModel.Types

Namespace Global

    Namespace sfgboxapi.ServiceModel

        Public Partial Class GrowersListLookup
            Public Overridable Property Id As Long
            Public Overridable Property TenantsId As Long
            Public Overridable Property DisplayName As String
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property Email As String
            Public Overridable Property PhoneNumber As String
            Public Overridable Property AppUserId As Long
            Public Overridable Property Approved As Nullable(Of Boolean)
            Public Overridable Property ApprovalDate As Date
            Public Overridable Property ApplicationDate As Date
            Public Overridable Property IdentificationNumber As String
            Public Overridable Property PassportNumber As String
            Public Overridable Property Address As String
            Public Overridable Property EthnicGroup As String
            Public Overridable Property Gender As String
            Public Overridable Property IsDisabled As Boolean
            Public Overridable Property Latitude As Double
            Public Overridable Property Longitude As Double
            Public Overridable Property DocumentUrl As String
            Public Overridable Property IsZoneMain As Nullable(Of Boolean)
            Public Overridable Property Paging As Paging
        End Class
    End Namespace

    Namespace sfgboxapi.ServiceModel.Types

        Public Partial Class Paging
            Public Overridable Property PageNumber As Integer
            Public Overridable Property PageSize As Integer
        End Class
    End Namespace
End Namespace

VB.NET GrowersListLookup 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /growerslist HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"id":0,"tenantsId":0,"displayName":"String","firstName":"String","lastName":"String","email":"String","phoneNumber":"String","appUserId":0,"approved":false,"approvalDate":"\/Date(-62135596800000-0000)\/","applicationDate":"\/Date(-62135596800000-0000)\/","identificationNumber":"String","passportNumber":"String","address":"String","ethnicGroup":"String","gender":"String","isDisabled":false,"latitude":0,"longitude":0,"documentUrl":"String","isZoneMain":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}]