FrameAppWS

<back to all web services

AccessURLTokenRQ

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

class AccessURLTokenRS implements IConvertible
{
    String? Respuesta;

    AccessURLTokenRS({this.Respuesta});
    AccessURLTokenRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class AccessURLTokenRQ implements IConvertible
{
    String? Id;
    String? Operacion;
    String? Login;
    String? NombreApp;
    dynamic? Data;
    double? IdEmpresa;
    double? IdSistema;
    String? NombreUsuario;

    AccessURLTokenRQ({this.Id,this.Operacion,this.Login,this.NombreApp,this.Data,this.IdEmpresa,this.IdSistema,this.NombreUsuario});
    AccessURLTokenRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Operacion = json['Operacion'];
        Login = json['Login'];
        NombreApp = json['NombreApp'];
        Data = JsonConverters.fromJson(json['Data'],'dynamic',context!);
        IdEmpresa = JsonConverters.toDouble(json['IdEmpresa']);
        IdSistema = JsonConverters.toDouble(json['IdSistema']);
        NombreUsuario = json['NombreUsuario'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Operacion': Operacion,
        'Login': Login,
        'NombreApp': NombreApp,
        'Data': JsonConverters.toJson(Data,'dynamic',context!),
        'IdEmpresa': IdEmpresa,
        'IdSistema': IdSistema,
        'NombreUsuario': NombreUsuario
    };

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

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

Dart AccessURLTokenRQ DTOs

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

HTTP + OTHER

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

POST /Utilidades/AccessURLToken HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Id":"String","Operacion":"String","Login":"String","NombreApp":"String","Data":{},"IdEmpresa":0,"IdSistema":0,"NombreUsuario":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Respuesta":"String"}