FrameAppWS

<back to all web services

ExecuteDBFunctionRouteRQ

Requires Authentication
The following routes are available for this service:
All Verbs/api/{executeDBFunction*}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class ExecuteDBFunctionRouteRQ implements IConvertible
{
    String? executeDBFunction;
    Map<String,dynamic?>? rq;
    List<Map<String,dynamic>>? ra;

    ExecuteDBFunctionRouteRQ({this.executeDBFunction,this.rq,this.ra});
    ExecuteDBFunctionRouteRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        executeDBFunction = json['executeDBFunction'];
        rq = JsonConverters.fromJson(json['rq'],'Map<String,dynamic?>',context!);
        ra = JsonConverters.fromJson(json['ra'],'List<Map<String,dynamic>>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'executeDBFunction': executeDBFunction,
        'rq': JsonConverters.toJson(rq,'Map<String,dynamic?>',context!),
        'ra': JsonConverters.toJson(ra,'List<Map<String,dynamic>>',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
    'ExecuteDBFunctionRouteRQ': TypeInfo(TypeOf.Class, create:() => ExecuteDBFunctionRouteRQ()),
    'Map<String,dynamic?>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic?>()),
    'List<Map<String,dynamic>>': TypeInfo(TypeOf.Class, create:() => <Map<String,dynamic>>[]),
    'Map<String,dynamic>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic>()),
});

Dart ExecuteDBFunctionRouteRQ DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /api/{executeDBFunction*} HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"executeDBFunction":"String","rq":{"String":{}},"ra":[{"String":{}}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}