| GET,OPTIONS | /v1/field/applications |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ApplicationView() =
member val ChemicalApplicationID:Int32 = new Int32() with get,set
member val AppliedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val AreaTreated:String = null with get,set
member val ProductName:String = null with get,set
member val EpaRegistrationNumber:String = null with get,set
member val AmountApplied:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val AmountUnit:String = null with get,set
member val Concentration:String = null with get,set
member val TreatedQuantity:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val TreatedUnit:String = null with get,set
member val TargetPest:String = null with get,set
member val ApplicatorName:String = null with get,set
member val ApplicatorLicence:String = null with get,set
member val WindSpeedMph:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val WindDirection:String = null with get,set
member val TemperatureF:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val Notes:String = null with get,set
member val SubmittedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val AmendsApplicationID:Nullable<Int32> = new Nullable<Int32>() with get,set
member val IsAmended:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type ApplicationResponse() =
member val Applications:ResizeArray<ApplicationView> = new ResizeArray<ApplicationView>() with get,set
member val ChemicalApplicationID:Int32 = new Int32() with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type ApplicationListRequest() =
member val ProjectID:Int32 = new Int32() with get,set
member val AgreementJobID:Int32 = new Int32() with get,set
member val FromDate:String = null with get,set
member val ToDate:String = null with get,set
F# ApplicationListRequest DTOs
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 /v1/field/applications HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Applications":[{"ChemicalApplicationID":0,"AppliedAt":"0001-01-01T00:00:00.0000000","AreaTreated":"String","ProductName":"String","EpaRegistrationNumber":"String","AmountApplied":0,"AmountUnit":"String","Concentration":"String","TreatedQuantity":0,"TreatedUnit":"String","TargetPest":"String","ApplicatorName":"String","ApplicatorLicence":"String","WindSpeedMph":0,"WindDirection":"String","TemperatureF":0,"Notes":"String","SubmittedAt":"0001-01-01T00:00:00.0000000","AmendsApplicationID":0,"IsAmended":false}],"ChemicalApplicationID":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}