| GET | /stock/{brand}/slim | Get slim Stock |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.Stock.ServiceModel
Namespace Global
Namespace Richemont.Booster2.PublicApi.Stock.ServiceModel
Public Partial Class GetStockSlim
Public Sub New()
posCodes = New List(Of String)
articleCodes = New List(Of String)
clusterIds = New List(Of String)
End Sub
'''<Summary>
'''Brand
'''</Summary>
<ApiMember(Description:="Brand", IsRequired:=true)>
Public Overridable Property brand As String
'''<Summary>
'''POS Legacy
'''</Summary>
<ApiMember(Description:="POS Legacy")>
Public Overridable Property posCodes As List(Of String)
'''<Summary>
'''Article Codes
'''</Summary>
<ApiMember(Description:="Article Codes")>
Public Overridable Property articleCodes As List(Of String)
'''<Summary>
'''Cluster Id
'''</Summary>
<ApiMember(Description:="Cluster Id")>
Public Overridable Property clusterIds As List(Of String)
'''<Summary>
'''Include Extra Info
'''</Summary>
<ApiMember(Description:="Include Extra Info")>
Public Overridable Property includeExtraInfo As Boolean
'''<Summary>
'''Include Consignment NotAuthorized POS
'''</Summary>
<ApiMember(Description:="Include Consignment NotAuthorized POS")>
Public Overridable Property includeConsignmentNotAuthorizedPOS As Boolean
'''<Summary>
'''Item type, 'standard' OR 'consigned'. By default, all are coming
'''</Summary>
<ApiMember(Description:="Item type, 'standard' OR 'consigned'. By default, all are coming")>
Public Overridable Property type As String
End Class
Public Partial Class GetStockSlimResponse
Public Sub New()
elements = New List(Of String)
End Sub
'''<Summary>
'''Total Product Count
'''</Summary>
<ApiMember(Description:="Total Product Count", IsRequired:=true)>
Public Overridable Property totalProductCount As Integer
'''<Summary>
'''Total Consignment Count
'''</Summary>
<ApiMember(Description:="Total Consignment Count", IsRequired:=true)>
Public Overridable Property totalConsignmentCount As Integer
'''<Summary>
'''Articles
'''</Summary>
<ApiMember(Description:="Articles", IsRequired:=true)>
Public Overridable Property elements As List(Of String)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /stock/{brand}/slim HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"totalProductCount":0,"totalConsignmentCount":0,"elements":["String"]}