POST api/Login/GetCodeBase64

Request Information

URI Parameters

None.

Body Parameters

BaseReqOfGetCodeBase64Req
NameDescriptionTypeAdditional information
Req

GetCodeBase64Req

None.

Method

string

Required

ClientType

ClientType

Required

ClientVersion

string

Required

ClientDeviceVersion

string

Required

ClientDeviceNo

string

Required

ClientOSVersion

string

None.

Timestamp

date

Required

Token

string

None.

Sign

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Req": {
    "DeviceNo": "sample string 1",
    "ExpireSecond": 1,
    "CodeLength": 1
  },
  "Method": "sample string 1",
  "ClientType": 0,
  "ClientVersion": "sample string 2",
  "ClientDeviceVersion": "sample string 3",
  "ClientDeviceNo": "sample string 4",
  "ClientOSVersion": "sample string 5",
  "Timestamp": "2022-06-25 09:29:53:818",
  "Token": "sample string 7",
  "Sign": "sample string 8"
}

application/xml, text/xml

Sample:
<BaseReqOfGetCodeBase64ReqWtHIWBcz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YJY.Common.Soa.Models">
  <ClientDeviceNo>sample string 4</ClientDeviceNo>
  <ClientDeviceVersion>sample string 3</ClientDeviceVersion>
  <ClientOSVersion>sample string 5</ClientOSVersion>
  <ClientType>Unknown</ClientType>
  <ClientVersion>sample string 2</ClientVersion>
  <Method>sample string 1</Method>
  <Sign>sample string 8</Sign>
  <Timestamp>2022-06-25T09:29:53.8186435+08:00</Timestamp>
  <Token>sample string 7</Token>
  <Req xmlns:d2p1="http://schemas.datacontract.org/2004/07/YJY.Auth.Model.Req">
    <d2p1:CodeLength>1</d2p1:CodeLength>
    <d2p1:DeviceNo>sample string 1</d2p1:DeviceNo>
    <d2p1:ExpireSecond>1</d2p1:ExpireSecond>
  </Req>
</BaseReqOfGetCodeBase64ReqWtHIWBcz>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BaseReq`1'.

Response Information

Resource Description

BaseRspOfString
NameDescriptionTypeAdditional information
Rsp

string

None.

Method

string

Required

Code

integer

Required

CodeStr

string

Required

CodeMsg

string

Required

ExtMsg

string

None.

ReqId

string

Required

Response Formats

application/json, text/json

Sample:
{
  "Rsp": "sample string 1",
  "Method": "sample string 2",
  "Code": 3,
  "CodeStr": "sample string 4",
  "CodeMsg": "sample string 5",
  "ExtMsg": "sample string 6",
  "ReqId": "sample string 7"
}

application/xml, text/xml

Sample:
<BaseRspOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YJY.Common.Soa.Models">
  <Code>3</Code>
  <CodeMsg>sample string 5</CodeMsg>
  <CodeStr>sample string 4</CodeStr>
  <ExtMsg>sample string 6</ExtMsg>
  <Method>sample string 2</Method>
  <ReqId>sample string 7</ReqId>
  <Rsp>sample string 1</Rsp>
</BaseRspOfstring>