All Verbs | /restfiles/ReportLog |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ReportLogRS implements IConvertible
{
bool? isLog;
String? error;
ReportLogRS({this.isLog,this.error});
ReportLogRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
isLog = json['isLog'];
error = json['error'];
return this;
}
Map<String, dynamic> toJson() => {
'isLog': isLog,
'error': error
};
getTypeName() => "ReportLogRS";
TypeContext? context = _ctx;
}
class ReportLogRQ implements IConvertible
{
double? idReport;
String? Parametros;
ReportLogRQ({this.idReport,this.Parametros});
ReportLogRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
idReport = JsonConverters.toDouble(json['idReport']);
Parametros = json['Parametros'];
return this;
}
Map<String, dynamic> toJson() => {
'idReport': idReport,
'Parametros': Parametros
};
getTypeName() => "ReportLogRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'ReportLogRS': TypeInfo(TypeOf.Class, create:() => ReportLogRS()),
'ReportLogRQ': TypeInfo(TypeOf.Class, create:() => ReportLogRQ()),
});
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/ReportLog HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ReportLogRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<Parametros>String</Parametros>
<idReport>0</idReport>
</ReportLogRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ReportLogRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <error>String</error> <isLog>false</isLog> </ReportLogRS>