ImzagerServices

<back to all web services

GetCertificate

The following routes are available for this service:
All Verbs/GetCertificate/{ClientKey}
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DabCertificateClass:
    signer_name: Optional[str] = None
    signer_user_s_s_n: Optional[str] = None
    signer_provider: Optional[str] = None
    signer_cert_start_date: Optional[str] = None
    signer_cert_end_date: Optional[str] = None
    signer_cert_base64: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetCertificateResponse:
    result: Optional[DabCertificateClass] = None
    service_success_result: bool = False
    error_mesage: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetCertificate:
    client_key: Optional[str] = None
    authorization_ı_d: Optional[str] = None
    user_s_s_n: Optional[str] = None

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

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

{"Result":{"SignerName":"String","SignerUserSSN":"String","SignerProvider":"String","SignerCertStartDate":"String","SignerCertEndDate":"String","SignerCertBase64":"String"},"ServiceSuccessResult":false,"ErrorMesage":"String"}