ImzagerServices

<back to all web services

Authentication

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

class AuthenticationResponse implements IConvertible
{
    String? Result;
    bool? ServiceSuccessResult;
    String? ErrorMesage;

    AuthenticationResponse({this.Result,this.ServiceSuccessResult,this.ErrorMesage});
    AuthenticationResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'Result': Result,
        'ServiceSuccessResult': ServiceSuccessResult,
        'ErrorMesage': ErrorMesage
    };

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

class Authentication implements IConvertible
{
    String? ClientKey;
    String? SecretKey;

    Authentication({this.ClientKey,this.SecretKey});
    Authentication.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'imzagerservices.eyyubiye.bel.tr', types: <String, TypeInfo> {
    'AuthenticationResponse': TypeInfo(TypeOf.Class, create:() => AuthenticationResponse()),
    'Authentication': TypeInfo(TypeOf.Class, create:() => Authentication()),
});

Dart Authentication 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 /Authentication/{ClientKey} HTTP/1.1 
Host: imzagerservices.eyyubiye.bel.tr 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ClientKey":"String","SecretKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Result":"String","ServiceSuccessResult":false,"ErrorMesage":"String"}