Richemont.Booster2.PublicApi

<back to all web services

GetTaskDetail

Requires Authentication
The following routes are available for this service:
GET/tasks/{asyncTaskId}Get task detail of authorized user
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.NightlyProcess.ServiceModel;

namespace Richemont.Booster2.PublicApi.NightlyProcess.ServiceModel
{
    public partial class GetTaskDetail
    {
        ///<summary>
        ///Async task ID
        ///</summary>
        [ApiMember(Description="Async task ID", IsRequired=true)]
        public virtual Guid asyncTaskId { get; set; }
    }

    public partial class GetTaskDetailResponse
        : Task
    {
    }

    public partial class Task
    {
        ///<summary>
        ///Async task ID
        ///</summary>
        [ApiMember(Description="Async task ID", IsRequired=true)]
        public virtual Guid asyncTaskId { get; set; }

        ///<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 virtual string type { get; set; }

        ///<summary>
        ///Async task creation date
        ///</summary>
        [ApiMember(Description="Async task creation date", IsRequired=true)]
        public virtual string requestDate { get; set; }

        ///<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 virtual string status { get; set; }

        ///<summary>
        ///Percentage of completion
        ///</summary>
        [ApiMember(Description="Percentage of completion", IsRequired=true)]
        public virtual int percentage { get; set; }

        ///<summary>
        ///Brand Trigram
        ///</summary>
        [ApiMember(Description="Brand Trigram", IsRequired=true)]
        public virtual string brand { get; set; }

        ///<summary>
        ///Download url of created files
        ///</summary>
        [ApiMember(Description="Download url of created files")]
        public virtual string downloadUrl { get; set; }

        ///<summary>
        ///Presigned expiring download url
        ///</summary>
        [ApiMember(Description="Presigned expiring download url")]
        public virtual string signedDownloadUrl { get; set; }

        ///<summary>
        ///Total count of operations
        ///</summary>
        [ApiMember(Description="Total count of operations")]
        public virtual int? totalResults { get; set; }

        ///<summary>
        ///Count of successful operations
        ///</summary>
        [ApiMember(Description="Count of successful operations")]
        public virtual int? totalSucceeded { get; set; }

        ///<summary>
        ///Count of failed operations
        ///</summary>
        [ApiMember(Description="Count of failed operations")]
        public virtual int? totalFailed { get; set; }
    }

}

C# GetTaskDetail DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + 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>