| Requires any of the roles: | dealer-api-mds, dealer-api-nop |
| All Verbs | /diagram-single/{DiagramId} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mds.Api.ServiceModel
Imports Tiptopweb.MojoPortal.Shared.Poco
Namespace Global
Namespace Mds.Api.ServiceModel
Public Partial Class DiagramSingle
Public Overridable Property DiagramId As Integer
End Class
Public Partial Class DiagramSingleResponse
Public Sub New()
Parts = New List(Of MyobStockItemMapping)
End Sub
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Parts As List(Of MyobStockItemMapping)
End Class
End Namespace
Namespace Tiptopweb.MojoPortal.Shared.Poco
Public Partial Class Coordinate
Public Overridable Property x1 As Integer
Public Overridable Property y1 As Integer
Public Overridable Property x2 As Integer
Public Overridable Property y2 As Integer
End Class
Public Partial Class MyobStockItemMapping
Public Sub New()
Coordinates = New List(Of Coordinate)
End Sub
Public Overridable Property StockItemId As Integer
Public Overridable Property Id As Integer
Public Overridable Property Number As Integer
Public Overridable Property InventoryId As String
Public Overridable Property GroupId As Integer
Public Overridable Property Name As String
Public Overridable Property RetailPrice As Nullable(Of Decimal)
Public Overridable Property DealerPrice As Nullable(Of Decimal)
Public Overridable Property TradePrice As Nullable(Of Decimal)
Public Overridable Property RetailPriceNz As Nullable(Of Decimal)
Public Overridable Property TradePriceNz As Nullable(Of Decimal)
Public Overridable Property DealerPriceNz As Nullable(Of Decimal)
Public Overridable Property SalesUom As String
Public Overridable Property StockingIndicator As String
Public Overridable Property Color As String
Public Overridable Property ColorCode As String
Public Overridable Property NoteText As String
Public Overridable Property Coordinates As List(Of Coordinate)
Public Overridable Property PartQuantity As Integer
Public Overridable Property AvaiableQuantity As Integer
Public Overridable Property ShowAvailabilityPopUp As Boolean
Public Overridable Property IsFd As Boolean
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{"DiagramId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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}]}