| GET | /serialnumber/{brand}/{serialNumber}/lookup | Get a serial number history |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.MasterFile.ServiceModel
Namespace Global
Namespace Richemont.Booster2.PublicApi.MasterFile.ServiceModel
Public Partial Class GetSerialNumberHistory
'''<Summary>
'''Brand
'''</Summary>
<ApiMember(Description:="Brand", IsRequired:=true)>
Public Overridable Property brand As String
'''<Summary>
'''Serial Number
'''</Summary>
<ApiMember(Description:="Serial Number", IsRequired:=true)>
Public Overridable Property serialNumber As String
End Class
Public Partial Class GetSerialNumberHistoryResponse
Inherits List(Of SerialNumberList)
End Class
Public Partial Class SerialNumberList
'''<Summary>
'''Article Code
'''</Summary>
<ApiMember(Description:="Article Code", IsRequired:=true)>
Public Overridable Property articleCode As String
'''<Summary>
'''Serial Number
'''</Summary>
<ApiMember(Description:="Serial Number", IsRequired:=true)>
Public Overridable Property serialNumber As String
End Class
End Namespace
End Namespace
VB.NET GetSerialNumberHistory 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.
GET /serialnumber/{brand}/{serialNumber}/lookup HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ ]