| 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 .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Codes:
[
String
]
}