| GET,OPTIONS | /v1/InspectionReport/{AgentUID}/{ContactUID}/ |
|---|
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 Employee
Public Overridable Property FirstName As String
Public Overridable Property MiddleName As String
Public Overridable Property LastName As String
End Class
Public Partial Class GetInspectionReport
Public Overridable Property AgentUID As Guid
Public Overridable Property ContactUID As Guid
Public Overridable Property InspectionReportUID As Guid
End Class
Public Partial Class GetInspectionReportResponse
Public Overridable Property Result As List(Of InspectionReport) = New List(Of InspectionReport)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class InspectionReport
Public Overridable Property AgentUID As Guid
Public Overridable Property ContactUID As Guid
Public Overridable Property InspectionReportUID As Guid
Public Overridable Property TradeName As String
Public Overridable Property BusinessPhone As String
Public Overridable Property StreetAddress As String
Public Overridable Property ZipCode As String
Public Overridable Property OwnersName As String
Public Overridable Property ComplianceStatus As Byte
Public Overridable Property IsBusinessClassABeer As Boolean
Public Overridable Property IsBusinessClassBBeer As Boolean
Public Overridable Property IsBusinessClassALiquor As Boolean
Public Overridable Property IsBusinessClassBLiquor As Boolean
Public Overridable Property IsBusinessClassD As Boolean
Public Overridable Property IsBusinessClassM As Boolean
Public Overridable Property IsBusinessClassP As Boolean
Public Overridable Property IsBusinessClassR As Boolean
Public Overridable Property IsBusinessClassRAH As Boolean
Public Overridable Property ClassBeerAccountNum As String
Public Overridable Property ClassBeerStateNum As String
Public Overridable Property ClassLiquorAccountNum As String
Public Overridable Property ClassLiquorStateNum As String
Public Overridable Property LicensedEmployees As List(Of Employee) = New List(Of Employee)
Public Overridable Property AgentName As String
Public Overridable Property ManagerSignature As Object
Public Overridable Property ManagerName As String
Public Overridable Property ManagerPhone As String
Public Overridable Property InspectionDate As Date
End Class
End Namespace
End Namespace
VB.NET GetInspectionReport 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/InspectionReport/{AgentUID}/{ContactUID}/ HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Result:
[
{
AgentUID: 00000000000000000000000000000000,
ContactUID: 00000000000000000000000000000000,
InspectionReportUID: 00000000000000000000000000000000,
TradeName: String,
BusinessPhone: String,
StreetAddress: String,
ZipCode: String,
OwnersName: String,
ComplianceStatus: 0,
IsBusinessClassABeer: False,
IsBusinessClassBBeer: False,
IsBusinessClassALiquor: False,
IsBusinessClassBLiquor: False,
IsBusinessClassD: False,
IsBusinessClassM: False,
IsBusinessClassP: False,
IsBusinessClassR: False,
IsBusinessClassRAH: False,
ClassBeerAccountNum: String,
ClassBeerStateNum: String,
ClassLiquorAccountNum: String,
ClassLiquorStateNum: String,
LicensedEmployees:
[
{
FirstName: String,
MiddleName: String,
LastName: String
}
],
AgentName: String,
ManagerSignature: {},
ManagerName: String,
ManagerPhone: String,
InspectionDate: 0001-01-01
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}