FrameAppWS

<back to all web services

ReportLogRQ

Requires Authentication
The following routes are available for this service:
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()),
});

Dart ReportLogRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
Content-Type: text/csv
Content-Length: length

{"idReport":0,"Parametros":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"isLog":false,"error":"String"}