| POST,OPTIONS | /v1/dispatch/settings/pattern/sample |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class DispatchPatternSampleRequest
{
open var PatternId:String? = null
}
open class DispatchModulesResponse
{
open var Modules:ArrayList<DispatchModuleView> = ArrayList<DispatchModuleView>()
open var Patterns:ArrayList<DispatchPatternView> = ArrayList<DispatchPatternView>()
open var ResponseStatus:ResponseStatus? = null
}
open class DispatchModuleView
{
open var Key:String? = null
open var Mode:String? = null
open var Allowed:Boolean? = null
open var Enabled:Boolean? = null
open var InFlight:Int? = null
}
open class DispatchPatternView
{
open var PatternId:String? = null
open var Name:String? = null
open var Source:String? = null
open var Facility:String? = null
open var Unit:String? = null
open var HasQuotas:Boolean? = null
open var IsInverted:Boolean? = null
open var LoadLimitMins:Int? = null
open var TicketSource:String? = null
open var PayBasis:String? = null
open var IsActive:Boolean? = null
}
Kotlin DispatchPatternSampleRequest 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.
POST /v1/dispatch/settings/pattern/sample HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PatternId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Modules:
[
{
Key: String,
Mode: String,
Allowed: False,
Enabled: False,
InFlight: 0
}
],
Patterns:
[
{
PatternId: String,
Name: String,
Source: String,
Facility: String,
Unit: String,
HasQuotas: False,
IsInverted: False,
LoadLimitMins: 0,
TicketSource: String,
PayBasis: String,
IsActive: False
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}