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
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetHobbies
    {
        /**
        * Brand
        */
        @ApiMember(Description="Brand", IsRequired=true)
        public String brand = null;

        /**
        * POS Legacy
        */
        @ApiMember(Description="POS Legacy", IsRequired=true)
        public String posCode = null;
        
        public String getBrand() { return brand; }
        public GetHobbies setBrand(String value) { this.brand = value; return this; }
        public String getPosCode() { return posCode; }
        public GetHobbies setPosCode(String value) { this.posCode = value; return this; }
    }

    public static class GetHobbiesResponse extends ArrayList<Hobby>
    {
        
    }

    public static class Hobby
    {
        /**
        * Hobby description
        */
        @ApiMember(Description="Hobby description", IsRequired=true)
        public String hobby = null;

        /**
        * SAP Hobby ID, e.g. 'ART'
        */
        @ApiMember(Description="SAP Hobby ID, e.g. 'ART'", IsRequired=true)
        public String sapHobbyId = null;

        /**
        * Hobby description translation
        */
        @ApiMember(Description="Hobby description translation")
        public String translation = null;
        
        public String getHobby() { return hobby; }
        public Hobby setHobby(String value) { this.hobby = value; return this; }
        public String getSapHobbyId() { return sapHobbyId; }
        public Hobby setSapHobbyId(String value) { this.sapHobbyId = value; return this; }
        public String getTranslation() { return translation; }
        public Hobby setTranslation(String value) { this.translation = value; return this; }
    }

}

Java GetHobbies DTOs

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

HTTP + OTHER

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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[]