| GET | /cropsvarieties |
|---|
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 CropsVarietiesLookup
{
public virtual long Id { get; set; }
public virtual long TenantsId { get; set; }
public virtual long CropsId { get; set; }
public virtual string CropsName { get; set; }
public virtual string LatinName { get; set; }
public virtual string Name { get; set; }
public virtual string About { get; set; }
public virtual int HeightsCm { get; set; }
public virtual bool NeedStakes { get; set; }
public virtual bool NeedSupport { get; set; }
public virtual bool NeedTrellis { 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 .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /cropsvarieties HTTP/1.1 Host: sfgboxapi.dev.scadsoftware.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{Unable to show example output for type 'IEnumerable`1' using the custom 'other' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IEnumerable`1[sfgboxapi.ServiceModel.CropsVarietiesLookupResponse]'. Reason: Cannot create an instance of an interface.