| DELETE,OPTIONS | /v1/ReportManager/api/Modules/{id} |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
abstract class ReportManagerDeleteRequest<T>
{
int? id;
ReportManagerDeleteRequest({this.id});
ReportManagerDeleteRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id
};
getTypeName() => "ReportManagerDeleteRequest<$T>";
TypeContext? context = _ctx;
}
class ReportManagerModule implements IReportManagerDocument, IConvertible
{
int? id;
String? name;
String? text;
DateTime? updated;
ReportManagerModule({this.id,this.name,this.text,this.updated});
ReportManagerModule.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
name = json['name'];
text = json['text'];
updated = JsonConverters.fromJson(json['updated'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'text': text,
'updated': JsonConverters.toJson(updated,'DateTime',context!)
};
getTypeName() => "ReportManagerModule";
TypeContext? context = _ctx;
}
class ReportManagerModuleDeleteRequest extends ReportManagerDeleteRequest<ReportManagerModule> implements IConvertible
{
ReportManagerModuleDeleteRequest();
ReportManagerModuleDeleteRequest.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "ReportManagerModuleDeleteRequest";
TypeContext? context = _ctx;
}
class ReportManagerSaveDeleteResponse implements IConvertible
{
int? id;
ReportManagerSaveDeleteResponse({this.id});
ReportManagerSaveDeleteResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id
};
getTypeName() => "ReportManagerSaveDeleteResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'ReportManagerDeleteRequest<T>': TypeInfo(TypeOf.GenericDef,create:() => ReportManagerDeleteRequest()),
'ReportManagerModule': TypeInfo(TypeOf.Class, create:() => ReportManagerModule()),
'ReportManagerModuleDeleteRequest': TypeInfo(TypeOf.Class, create:() => ReportManagerModuleDeleteRequest()),
'ReportManagerSaveDeleteResponse': TypeInfo(TypeOf.Class, create:() => ReportManagerSaveDeleteResponse()),
});
Dart ReportManagerModuleDeleteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
DELETE /v1/ReportManager/api/Modules/{id} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":0}