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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<AccessURLTokenRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <Data />
  <Id>String</Id>
  <IdEmpresa>0</IdEmpresa>
  <IdSistema>0</IdSistema>
  <Login>String</Login>
  <NombreApp>String</NombreApp>
  <NombreUsuario>String</NombreUsuario>
  <Operacion>String</Operacion>
</AccessURLTokenRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AccessURLTokenRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <Respuesta>String</Respuesta>
</AccessURLTokenRS>