Trendsic Platform Service

<back to all web services

ApplicationListRequest

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ApplicationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Applications>
    <ApplicationView>
      <AmendsApplicationID>0</AmendsApplicationID>
      <AmountApplied>0</AmountApplied>
      <AmountUnit>String</AmountUnit>
      <ApplicatorLicence>String</ApplicatorLicence>
      <ApplicatorName>String</ApplicatorName>
      <AppliedAt>0001-01-01T00:00:00</AppliedAt>
      <AreaTreated>String</AreaTreated>
      <ChemicalApplicationID>0</ChemicalApplicationID>
      <Concentration>String</Concentration>
      <EpaRegistrationNumber>String</EpaRegistrationNumber>
      <IsAmended>false</IsAmended>
      <Notes>String</Notes>
      <ProductName>String</ProductName>
      <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
      <TargetPest>String</TargetPest>
      <TemperatureF>0</TemperatureF>
      <TreatedQuantity>0</TreatedQuantity>
      <TreatedUnit>String</TreatedUnit>
      <WindDirection>String</WindDirection>
      <WindSpeedMph>0</WindSpeedMph>
    </ApplicationView>
  </Applications>
  <ChemicalApplicationID>0</ChemicalApplicationID>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</ApplicationResponse>