POST | /UserAccount/AccountRegisterationInit |
---|
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 AccountRegisterationInitResponse:
location_country_id: int = 0
error_msg: Optional[str] = None
is_verified: bool = False
request_id: Optional[str] = None
pin_code_request_enabled: bool = False
bypass_mobile_authentication: bool = False
response_status: Optional[ResponseStatus] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AccountRegisterationInitRequest:
mobile_number: Optional[str] = None
iso_code: Optional[str] = None
attempt_number: int = 0
Python AccountRegisterationInitRequest DTOs
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 /UserAccount/AccountRegisterationInit HTTP/1.1
Host: api-demo-1.cura.healthcare
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
MobileNumber: String,
IsoCode: String,
AttemptNumber: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { LocationCountryId: 0, ErrorMsg: String, IsVerified: False, RequestId: String, PinCodeRequestEnabled: False, BypassMobileAuthentication: False, ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }