All Verbs | /Utilidades/Archivos/UploadFileRQ |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class UploadFileRS implements IConvertible
{
bool? Success;
String? Error;
UploadFileRS({this.Success,this.Error});
UploadFileRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
Error = json['Error'];
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'Error': Error
};
getTypeName() => "UploadFileRS";
TypeContext? context = _ctx;
}
class UploadFileRQ implements IConvertible
{
String? path;
String? carp_carp;
UploadFileRQ({this.path,this.carp_carp});
UploadFileRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
path = json['path'];
carp_carp = json['carp_carp'];
return this;
}
Map<String, dynamic> toJson() => {
'path': path,
'carp_carp': carp_carp
};
getTypeName() => "UploadFileRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'UploadFileRS': TypeInfo(TypeOf.Class, create:() => UploadFileRS()),
'UploadFileRQ': TypeInfo(TypeOf.Class, create:() => UploadFileRQ()),
});
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.
POST /Utilidades/Archivos/UploadFileRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"path":"String","carp_carp":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Success":false,"Error":"String"}