All Verbs | /Utilidades/ObtenerTokenBI |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GetTokenBiRS implements IConvertible
{
String? token_type;
String? scope;
String? resource;
String? access_token;
String? refresh_token;
String? id_token;
GetTokenBiRS({this.token_type,this.scope,this.resource,this.access_token,this.refresh_token,this.id_token});
GetTokenBiRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
token_type = json['token_type'];
scope = json['scope'];
resource = json['resource'];
access_token = json['access_token'];
refresh_token = json['refresh_token'];
id_token = json['id_token'];
return this;
}
Map<String, dynamic> toJson() => {
'token_type': token_type,
'scope': scope,
'resource': resource,
'access_token': access_token,
'refresh_token': refresh_token,
'id_token': id_token
};
getTypeName() => "GetTokenBiRS";
TypeContext? context = _ctx;
}
class GetTokenBiRQ implements IConvertible
{
GetTokenBiRQ();
GetTokenBiRQ.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetTokenBiRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'GetTokenBiRS': TypeInfo(TypeOf.Class, create:() => GetTokenBiRS()),
'GetTokenBiRQ': TypeInfo(TypeOf.Class, create:() => GetTokenBiRQ()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Utilidades/ObtenerTokenBI HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { token_type: String, scope: String, resource: String, access_token: String, refresh_token: String, id_token: String }