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

export class Hobby
{
    /** @description Hobby description */
    // @ApiMember(Description="Hobby description", IsRequired=true)
    public hobby: string;

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

    /** @description Hobby description translation */
    // @ApiMember(Description="Hobby description translation")
    public translation: string;

    public constructor(init?: Partial<Hobby>) { (Object as any).assign(this, init); }
}

export class GetHobbiesResponse extends Array<Hobby>
{

    public constructor(init?: Partial<GetHobbiesResponse>) { super(); (Object as any).assign(this, init); }
}

export class GetHobbies
{
    /** @description Brand */
    // @ApiMember(Description="Brand", IsRequired=true)
    public brand: string;

    /** @description POS Legacy */
    // @ApiMember(Description="POS Legacy", IsRequired=true)
    public posCode: string;

    public constructor(init?: Partial<GetHobbies>) { (Object as any).assign(this, init); }
}

TypeScript GetHobbies 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 /hobbies/{brand}/{posCode} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[]