| GET,OPTIONS | /v1/me/navigation |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GetMyNavigationRequest implements IGet, IConvertible
{
GetMyNavigationRequest();
GetMyNavigationRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetMyNavigationRequest";
TypeContext? context = _ctx;
}
class AppNavItem implements IConvertible
{
String? Id;
String? Title;
String? Href;
List<String>? RequiresAll = [];
List<String>? RequiresAny = [];
AppNavItem({this.Id,this.Title,this.Href,this.RequiresAll,this.RequiresAny});
AppNavItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
Title = json['Title'];
Href = json['Href'];
RequiresAll = JsonConverters.fromJson(json['RequiresAll'],'List<String>',context!);
RequiresAny = JsonConverters.fromJson(json['RequiresAny'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'Title': Title,
'Href': Href,
'RequiresAll': JsonConverters.toJson(RequiresAll,'List<String>',context!),
'RequiresAny': JsonConverters.toJson(RequiresAny,'List<String>',context!)
};
getTypeName() => "AppNavItem";
TypeContext? context = _ctx;
}
class GetMyNavigationResponse implements IConvertible
{
List<AppNavItem>? Items = [];
GetMyNavigationResponse({this.Items});
GetMyNavigationResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Items = JsonConverters.fromJson(json['Items'],'List<AppNavItem>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Items': JsonConverters.toJson(Items,'List<AppNavItem>',context!)
};
getTypeName() => "GetMyNavigationResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'GetMyNavigationRequest': TypeInfo(TypeOf.Class, create:() => GetMyNavigationRequest()),
'AppNavItem': TypeInfo(TypeOf.Class, create:() => AppNavItem()),
'GetMyNavigationResponse': TypeInfo(TypeOf.Class, create:() => GetMyNavigationResponse()),
'List<AppNavItem>': TypeInfo(TypeOf.Class, create:() => <AppNavItem>[]),
});
Dart GetMyNavigationRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/me/navigation HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Items":[{"Id":"String","Title":"String","Href":"String","RequiresAll":["String"],"RequiresAny":["String"]}]}