| Requires any of the roles: | dealer-api-mds, dealer-api-nop |
| All Verbs | /diagram-single/{DiagramId} |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class DiagramSingle
{
var DiagramId:Int? = null
}
open class DiagramSingleResponse
{
var ResponseStatus:ResponseStatus? = null
var Parts:ArrayList<MyobStockItemMapping> = ArrayList<MyobStockItemMapping>()
}
open class MyobStockItemMapping
{
var StockItemId:Int? = null
var Id:Int? = null
var Number:Int? = null
var InventoryId:String? = null
var GroupId:Int? = null
var Name:String? = null
var RetailPrice:BigDecimal? = null
var DealerPrice:BigDecimal? = null
var TradePrice:BigDecimal? = null
var RetailPriceNz:BigDecimal? = null
var TradePriceNz:BigDecimal? = null
var DealerPriceNz:BigDecimal? = null
var SalesUom:String? = null
var StockingIndicator:String? = null
var Color:String? = null
var ColorCode:String? = null
var NoteText:String? = null
var Coordinates:ArrayList<Coordinate> = ArrayList<Coordinate>()
var PartQuantity:Int? = null
var AvaiableQuantity:Int? = null
var ShowAvailabilityPopUp:Boolean? = null
var IsFd:Boolean? = null
}
open class Coordinate
{
var x1:Int? = null
var y1:Int? = null
var x2:Int? = null
var y2:Int? = null
}
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 /diagram-single/{DiagramId} HTTP/1.1
Host: mds-api.mojomotorcycles.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
DiagramId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Parts:
[
{
StockItemId: 0,
Id: 0,
Number: 0,
InventoryId: String,
GroupId: 0,
Name: String,
RetailPrice: 0,
DealerPrice: 0,
TradePrice: 0,
RetailPriceNz: 0,
TradePriceNz: 0,
DealerPriceNz: 0,
SalesUom: String,
StockingIndicator: String,
Color: String,
ColorCode: String,
NoteText: String,
Coordinates:
[
{
x1: 0,
y1: 0,
x2: 0,
y2: 0
}
],
PartQuantity: 0,
AvaiableQuantity: 0,
ShowAvailabilityPopUp: False,
IsFd: False
}
]
}