All Verbs | /restfiles/DeleteFileRQ |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class DeleteFileRS implements IConvertible
{
bool? isDelete;
String? error;
DeleteFileRS({this.isDelete,this.error});
DeleteFileRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
isDelete = json['isDelete'];
error = json['error'];
return this;
}
Map<String, dynamic> toJson() => {
'isDelete': isDelete,
'error': error
};
getTypeName() => "DeleteFileRS";
TypeContext? context = _ctx;
}
class RestFiles implements IConvertible
{
String? Path;
String? TextContents;
bool? ForDownload;
RestFiles({this.Path,this.TextContents,this.ForDownload});
RestFiles.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Path = json['Path'];
TextContents = json['TextContents'];
ForDownload = json['ForDownload'];
return this;
}
Map<String, dynamic> toJson() => {
'Path': Path,
'TextContents': TextContents,
'ForDownload': ForDownload
};
getTypeName() => "RestFiles";
TypeContext? context = _ctx;
}
class DeleteFileRQ implements IConvertible
{
double? idArchivo;
String? usua_login;
double? carp_carp;
bool? isDirectory;
int? empr_empr;
int? sist_sist;
String? path;
RestFiles? dataDelete;
DeleteFileRQ({this.idArchivo,this.usua_login,this.carp_carp,this.isDirectory,this.empr_empr,this.sist_sist,this.path,this.dataDelete});
DeleteFileRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
idArchivo = JsonConverters.toDouble(json['idArchivo']);
usua_login = json['usua_login'];
carp_carp = JsonConverters.toDouble(json['carp_carp']);
isDirectory = json['isDirectory'];
empr_empr = json['empr_empr'];
sist_sist = json['sist_sist'];
path = json['path'];
dataDelete = JsonConverters.fromJson(json['dataDelete'],'RestFiles',context!);
return this;
}
Map<String, dynamic> toJson() => {
'idArchivo': idArchivo,
'usua_login': usua_login,
'carp_carp': carp_carp,
'isDirectory': isDirectory,
'empr_empr': empr_empr,
'sist_sist': sist_sist,
'path': path,
'dataDelete': JsonConverters.toJson(dataDelete,'RestFiles',context!)
};
getTypeName() => "DeleteFileRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'DeleteFileRS': TypeInfo(TypeOf.Class, create:() => DeleteFileRS()),
'RestFiles': TypeInfo(TypeOf.Class, create:() => RestFiles()),
'DeleteFileRQ': TypeInfo(TypeOf.Class, create:() => DeleteFileRQ()),
});
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.
POST /restfiles/DeleteFileRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
idArchivo: 0,
usua_login: String,
carp_carp: 0,
isDirectory: False,
empr_empr: 0,
sist_sist: 0,
path: String,
dataDelete:
{
Path: String,
TextContents: String,
ForDownload: False
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { isDelete: False, error: String }