ImzagerServices

<back to all web services

UploadEYPDocument

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

class BaseResponse implements IConvertible
{
    bool? ServiceSuccessResult;
    String? ErrorMesage;

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

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

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

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

class UploadEYPDocumentResponse extends BaseResponse implements IConvertible
{
    String? Result;

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

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

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'Result': Result
    });

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

class UploadEYPDocument implements IConvertible
{
    String? ClientKey;
    String? AuthorizationID;
    String? Username;
    String? FileName;
    Uint8List? DocumentContent;
    String? MimeType;

    UploadEYPDocument({this.ClientKey,this.AuthorizationID,this.Username,this.FileName,this.DocumentContent,this.MimeType});
    UploadEYPDocument.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClientKey = json['ClientKey'];
        AuthorizationID = json['AuthorizationID'];
        Username = json['Username'];
        FileName = json['FileName'];
        DocumentContent = JsonConverters.fromJson(json['DocumentContent'],'Uint8List',context!);
        MimeType = json['MimeType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClientKey': ClientKey,
        'AuthorizationID': AuthorizationID,
        'Username': Username,
        'FileName': FileName,
        'DocumentContent': JsonConverters.toJson(DocumentContent,'Uint8List',context!),
        'MimeType': MimeType
    };

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

TypeContext _ctx = TypeContext(library: 'imzagerservices.eyyubiye.bel.tr', types: <String, TypeInfo> {
    'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()),
    'UploadEYPDocumentResponse': TypeInfo(TypeOf.Class, create:() => UploadEYPDocumentResponse()),
    'UploadEYPDocument': TypeInfo(TypeOf.Class, create:() => UploadEYPDocument()),
    'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
});

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

{"ClientKey":"String","AuthorizationID":"String","Username":"String","FileName":"String","DocumentContent":"AA==","MimeType":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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