Trendsic Platform Service

<back to all web services

GetMyPermissionsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/me/permissions
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

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

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

class GetMyPermissionsResponse implements IConvertible
{
    List<String>? Codes = [];

    GetMyPermissionsResponse({this.Codes});
    GetMyPermissionsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Codes = JsonConverters.fromJson(json['Codes'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Codes': JsonConverters.toJson(Codes,'List<String>',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'GetMyPermissionsRequest': TypeInfo(TypeOf.Class, create:() => GetMyPermissionsRequest()),
    'GetMyPermissionsResponse': TypeInfo(TypeOf.Class, create:() => GetMyPermissionsResponse()),
});

Dart GetMyPermissionsRequest 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 /v1/me/permissions HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Codes":["String"]}