| GET | /tasks/{asyncTaskId} | Get task detail of authorized user |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.NightlyProcess.ServiceModel
Namespace Global
Namespace Richemont.Booster2.PublicApi.NightlyProcess.ServiceModel
Public Partial Class GetTaskDetail
'''<Summary>
'''Async task ID
'''</Summary>
<ApiMember(Description:="Async task ID", IsRequired:=true)>
Public Overridable Property asyncTaskId As Guid
End Class
Public Partial Class GetTaskDetailResponse
Inherits Task
End Class
Public Partial Class Task
'''<Summary>
'''Async task ID
'''</Summary>
<ApiMember(Description:="Async task ID", IsRequired:=true)>
Public Overridable Property asyncTaskId As Guid
'''<Summary>
'''Type of requested async task, e.g 'stock', 'sellout', 'crm'
'''</Summary>
<ApiMember(Description:="Type of requested async task, e.g 'stock', 'sellout', 'crm'", IsRequired:=true)>
Public Overridable Property type As String
'''<Summary>
'''Async task creation date
'''</Summary>
<ApiMember(Description:="Async task creation date", IsRequired:=true)>
Public Overridable Property requestDate As String
'''<Summary>
'''Status of requested async task, e.g 'REQ', 'INP', 'COM', 'ERR'
'''</Summary>
<ApiMember(Description:="Status of requested async task, e.g 'REQ', 'INP', 'COM', 'ERR'", IsRequired:=true)>
Public Overridable Property status As String
'''<Summary>
'''Percentage of completion
'''</Summary>
<ApiMember(Description:="Percentage of completion", IsRequired:=true)>
Public Overridable Property percentage As Integer
'''<Summary>
'''Brand Trigram
'''</Summary>
<ApiMember(Description:="Brand Trigram", IsRequired:=true)>
Public Overridable Property brand As String
'''<Summary>
'''Download url of created files
'''</Summary>
<ApiMember(Description:="Download url of created files")>
Public Overridable Property downloadUrl As String
'''<Summary>
'''Presigned expiring download url
'''</Summary>
<ApiMember(Description:="Presigned expiring download url")>
Public Overridable Property signedDownloadUrl As String
'''<Summary>
'''Total count of operations
'''</Summary>
<ApiMember(Description:="Total count of operations")>
Public Overridable Property totalResults As Nullable(Of Integer)
'''<Summary>
'''Count of successful operations
'''</Summary>
<ApiMember(Description:="Count of successful operations")>
Public Overridable Property totalSucceeded As Nullable(Of Integer)
'''<Summary>
'''Count of failed operations
'''</Summary>
<ApiMember(Description:="Count of failed operations")>
Public Overridable Property totalFailed As Nullable(Of Integer)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /tasks/{asyncTaskId} HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetTaskDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.NightlyProcess.ServiceModel"> <asyncTaskId>00000000-0000-0000-0000-000000000000</asyncTaskId> <brand>String</brand> <downloadUrl>String</downloadUrl> <percentage>0</percentage> <requestDate>String</requestDate> <signedDownloadUrl>String</signedDownloadUrl> <status>String</status> <totalFailed>0</totalFailed> <totalResults>0</totalResults> <totalSucceeded>0</totalSucceeded> <type>String</type> </GetTaskDetailResponse>