| GET | /growerslist |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using sfgboxapi.ServiceModel;
using sfgboxapi.ServiceModel.Types;
namespace sfgboxapi.ServiceModel
{
public partial class GrowersListLookup
{
public virtual long Id { get; set; }
public virtual long TenantsId { get; set; }
public virtual string DisplayName { get; set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual string Email { get; set; }
public virtual string PhoneNumber { get; set; }
public virtual long AppUserId { get; set; }
public virtual bool? Approved { get; set; }
public virtual DateTime ApprovalDate { get; set; }
public virtual DateTime ApplicationDate { get; set; }
public virtual string IdentificationNumber { get; set; }
public virtual string PassportNumber { get; set; }
public virtual string Address { get; set; }
public virtual string EthnicGroup { get; set; }
public virtual string Gender { get; set; }
public virtual bool IsDisabled { get; set; }
public virtual double Latitude { get; set; }
public virtual double Longitude { get; set; }
public virtual string DocumentUrl { get; set; }
public virtual bool? IsZoneMain { get; set; }
public virtual Paging Paging { get; set; }
}
}
namespace sfgboxapi.ServiceModel.Types
{
public partial class Paging
{
public virtual int PageNumber { get; set; }
public virtual int PageSize { get; set; }
}
}
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 /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"}}}]