| Requires any of the roles: | dealer-api-mds, dealer-api-nop |
| All Verbs | /diagram-single/{DiagramId} |
|---|
namespace Mds.Api.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type Coordinate() =
member val x1:Int32 = new Int32() with get,set
member val y1:Int32 = new Int32() with get,set
member val x2:Int32 = new Int32() with get,set
member val y2:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type MyobStockItemMapping() =
member val StockItemId:Int32 = new Int32() with get,set
member val Id:Int32 = new Int32() with get,set
member val Number:Int32 = new Int32() with get,set
member val InventoryId:String = null with get,set
member val GroupId:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val RetailPrice:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val DealerPrice:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val TradePrice:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val RetailPriceNz:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val TradePriceNz:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val DealerPriceNz:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val SalesUom:String = null with get,set
member val StockingIndicator:String = null with get,set
member val Color:String = null with get,set
member val ColorCode:String = null with get,set
member val NoteText:String = null with get,set
member val Coordinates:ResizeArray<Coordinate> = new ResizeArray<Coordinate>() with get,set
member val PartQuantity:Int32 = new Int32() with get,set
member val AvaiableQuantity:Int32 = new Int32() with get,set
member val ShowAvailabilityPopUp:Boolean = new Boolean() with get,set
member val IsFd:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type DiagramSingleResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val Parts:ResizeArray<MyobStockItemMapping> = new ResizeArray<MyobStockItemMapping>() with get,set
[<AllowNullLiteral>]
type DiagramSingle() =
member val DiagramId:Int32 = new Int32() with get,set
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
}
]
}