| GET,OPTIONS | /v1/field/applications |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class ApplicationListRequest
{
open var ProjectID:Int? = null
open var AgreementJobID:Int? = null
open var FromDate:String? = null
open var ToDate:String? = null
}
open class ApplicationResponse
{
open var Applications:ArrayList<ApplicationView> = ArrayList<ApplicationView>()
open var ChemicalApplicationID:Int? = null
open var ResponseStatus:ResponseStatus? = null
}
open class ApplicationView
{
open var ChemicalApplicationID:Int? = null
open var AppliedAt:Date? = null
open var AreaTreated:String? = null
open var ProductName:String? = null
open var EpaRegistrationNumber:String? = null
open var AmountApplied:BigDecimal? = null
open var AmountUnit:String? = null
open var Concentration:String? = null
open var TreatedQuantity:BigDecimal? = null
open var TreatedUnit:String? = null
open var TargetPest:String? = null
open var ApplicatorName:String? = null
open var ApplicatorLicence:String? = null
open var WindSpeedMph:BigDecimal? = null
open var WindDirection:String? = null
open var TemperatureF:BigDecimal? = null
open var Notes:String? = null
open var SubmittedAt:Date? = null
open var AmendsApplicationID:Int? = null
open var IsAmended:Boolean? = null
}
Kotlin 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
}
}
}