FrameAppWS

<back to all web services

ShareReportRQ

Requires Authentication
The following routes are available for this service:
All Verbs/restfiles/ShareReportRQ
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class ShareFileRS implements IConvertible
{
    bool? isShared;
    String? error;

    ShareFileRS({this.isShared,this.error});
    ShareFileRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        isShared = json['isShared'];
        error = json['error'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'isShared': isShared,
        'error': error
    };

    getTypeName() => "ShareFileRS";
    TypeContext? context = _ctx;
}

class ShareReportRQ implements IConvertible
{
    double? reporte;
    String? usuario;
    double? sistema;
    double? empresa;

    ShareReportRQ({this.reporte,this.usuario,this.sistema,this.empresa});
    ShareReportRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        reporte = JsonConverters.toDouble(json['reporte']);
        usuario = json['usuario'];
        sistema = JsonConverters.toDouble(json['sistema']);
        empresa = JsonConverters.toDouble(json['empresa']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'reporte': reporte,
        'usuario': usuario,
        'sistema': sistema,
        'empresa': empresa
    };

    getTypeName() => "ShareReportRQ";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
    'ShareFileRS': TypeInfo(TypeOf.Class, create:() => ShareFileRS()),
    'ShareReportRQ': TypeInfo(TypeOf.Class, create:() => ShareReportRQ()),
});

Dart ShareReportRQ DTOs

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

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /restfiles/ShareReportRQ HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	reporte: 0,
	usuario: String,
	sistema: 0,
	empresa: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	isShared: False,
	error: String
}