| GET,OPTIONS | /v1/field/applications |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class ApplicationListRequest
Public Overridable Property ProjectID As Integer
Public Overridable Property AgreementJobID As Integer
Public Overridable Property FromDate As String
Public Overridable Property ToDate As String
End Class
Public Partial Class ApplicationResponse
Public Overridable Property Applications As List(Of ApplicationView) = New List(Of ApplicationView)
Public Overridable Property ChemicalApplicationID As Integer
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class ApplicationView
Public Overridable Property ChemicalApplicationID As Integer
Public Overridable Property AppliedAt As Date?
Public Overridable Property AreaTreated As String
Public Overridable Property ProductName As String
Public Overridable Property EpaRegistrationNumber As String
Public Overridable Property AmountApplied As Decimal?
Public Overridable Property AmountUnit As String
Public Overridable Property Concentration As String
Public Overridable Property TreatedQuantity As Decimal?
Public Overridable Property TreatedUnit As String
Public Overridable Property TargetPest As String
Public Overridable Property ApplicatorName As String
Public Overridable Property ApplicatorLicence As String
Public Overridable Property WindSpeedMph As Decimal?
Public Overridable Property WindDirection As String
Public Overridable Property TemperatureF As Decimal?
Public Overridable Property Notes As String
Public Overridable Property SubmittedAt As Date?
Public Overridable Property AmendsApplicationID As Integer?
Public Overridable Property IsAmended As Boolean
End Class
End Namespace
End Namespace
VB.NET ApplicationListRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Applications:
[
{
ChemicalApplicationID: 0,
AppliedAt: 0001-01-01,
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-01,
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
}
}
}