All Verbs | /restfiles/DeleteFileBxRQ |
---|
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 DeleteFileBxRQ implements IConvertible
{
double? idArchivo;
String? usua_login;
double? carp_carp;
bool? isDirectory;
int? empr_empr;
int? sist_sist;
String? path;
RestFiles? dataDelete;
DeleteFileBxRQ({this.idArchivo,this.usua_login,this.carp_carp,this.isDirectory,this.empr_empr,this.sist_sist,this.path,this.dataDelete});
DeleteFileBxRQ.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() => "DeleteFileBxRQ";
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()),
'DeleteFileBxRQ': TypeInfo(TypeOf.Class, create:() => DeleteFileBxRQ()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /restfiles/DeleteFileBxRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DeleteFileBxRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<carp_carp>0</carp_carp>
<dataDelete>
<ForDownload>false</ForDownload>
<Path>String</Path>
<TextContents>String</TextContents>
</dataDelete>
<empr_empr>0</empr_empr>
<idArchivo>0</idArchivo>
<isDirectory>false</isDirectory>
<path>String</path>
<sist_sist>0</sist_sist>
<usua_login>String</usua_login>
</DeleteFileBxRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <DeleteFileRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <error>String</error> <isDelete>false</isDelete> </DeleteFileRS>