Richemont.Booster2.PublicApi

<back to all web services

GetUserScope

Requires Authentication
The following routes are available for this service:
GET/authScopesGet all scopes of logged user
import 'package:servicestack/servicestack.dart';

class Scope implements IConvertible
{
    /**
    * Scope Code - combination of BU / Brand
    */
    // @ApiMember(Description="Scope Code - combination of BU / Brand", IsRequired=true)
    String? scopeCode;

    /**
    * Business Unit Code
    */
    // @ApiMember(Description="Business Unit Code", IsRequired=true)
    String? buCode;

    /**
    * Brand Trigram
    */
    // @ApiMember(Description="Brand Trigram", IsRequired=true)
    String? brand;

    /**
    * Description of the combination
    */
    // @ApiMember(Description="Description of the combination", IsRequired=true)
    String? description;

    Scope({this.scopeCode,this.buCode,this.brand,this.description});
    Scope.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        scopeCode = json['scopeCode'];
        buCode = json['buCode'];
        brand = json['brand'];
        description = json['description'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'scopeCode': scopeCode,
        'buCode': buCode,
        'brand': brand,
        'description': description
    };

    getTypeName() => "Scope";
    TypeContext? context = _ctx;
}

class GetUserScopeResponse extends ListBase<Scope> implements IConvertible
{
    final List<Scope> l = [];
    set length(int newLength) { l.length = newLength; }
    int get length => l.length;
    Scope operator [](int index) => l[index];
    void operator []=(int index, Scope value) { l[index] = value; }
    GetUserScopeResponse();
    GetUserScopeResponse.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetUserScopeResponse";
    TypeContext? context = _ctx;
}

class GetUserScope implements IConvertible
{
    GetUserScope();
    GetUserScope.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "GetUserScope";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: <String, TypeInfo> {
    'Scope': TypeInfo(TypeOf.Class, create:() => Scope()),
    'GetUserScopeResponse': TypeInfo(TypeOf.Class, create:() => GetUserScopeResponse()),
    'GetUserScope': TypeInfo(TypeOf.Class, create:() => GetUserScope()),
});

Dart GetUserScope 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 /authScopes HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[]