Richemont.Booster2.PublicApi

<back to all web services

GetTask

Requires Authentication
The following routes are available for this service:
GET/tasksGet tasks 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 GetTask
    {
    }

    public partial class GetTaskResponse
        : List<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# GetTask DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /tasks HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[]