Richemont.Booster2.PublicApi

<back to all web services

GetHobbies

Requires Authentication
The following routes are available for this service:
GET/hobbies/{brand}/{posCode}Get customer hobbies
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.CRM.ServiceModel;

namespace Richemont.Booster2.PublicApi.CRM.ServiceModel
{
    public partial class GetHobbies
    {
        ///<summary>
        ///Brand
        ///</summary>
        [ApiMember(Description="Brand", IsRequired=true)]
        public virtual string brand { get; set; }

        ///<summary>
        ///POS Legacy
        ///</summary>
        [ApiMember(Description="POS Legacy", IsRequired=true)]
        public virtual string posCode { get; set; }
    }

    public partial class GetHobbiesResponse
        : List<Hobby>
    {
    }

    public partial class Hobby
    {
        ///<summary>
        ///Hobby description
        ///</summary>
        [ApiMember(Description="Hobby description", IsRequired=true)]
        public virtual string hobby { get; set; }

        ///<summary>
        ///SAP Hobby ID, e.g. 'ART'
        ///</summary>
        [ApiMember(Description="SAP Hobby ID, e.g. 'ART'", IsRequired=true)]
        public virtual string sapHobbyId { get; set; }

        ///<summary>
        ///Hobby description translation
        ///</summary>
        [ApiMember(Description="Hobby description translation")]
        public virtual string translation { get; set; }
    }

}

C# GetHobbies DTOs

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

HTTP + JSV

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

GET /hobbies/{brand}/{posCode} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	
]