tvpl.api

<back to all web services

VerifyMisaESignRequest

Requires Authentication
The following routes are available for this service:
POST/api/misa-esign/verify
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 MisaESignCertificate:
    user_id: Optional[str] = None
    key_alias: Optional[str] = None
    app_name: Optional[str] = None
    key_status: Optional[str] = None
    email_name: Optional[str] = None
    effective_date: Optional[str] = None
    expiration_date: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MisaESignVerifyResponse(IResponseRequest):
    ok: bool = False
    code: int = 0
    message: Optional[str] = None
    certificate_serial: Optional[str] = None
    certificates: Optional[List[MisaESignCertificate]] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class VerifyMisaESignRequest(IPost):
    account_signature_id: int = 0
    cert_alias: Optional[str] = None

Python VerifyMisaESignRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/misa-esign/verify HTTP/1.1 
Host: qlcn-api.vsmlab.vn 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"accountSignatureId":0,"certAlias":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ok":false,"code":0,"message":"String","certificateSerial":"String","certificates":[{"userId":"String","keyAlias":"String","appName":"String","keyStatus":"String","emailName":"String","effectiveDate":"String","expirationDate":"String"}]}