POST api/VerificationCode/GetImageCode

Request Information

URI Parameters

None.

Body Parameters

GetImageCodeDTO
NameDescriptionTypeAdditional information
ImageSpec

string

None.

Timestamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ImageSpec": "sample string 1",
  "Timestamp": "sample string 2"
}

application/xml, text/xml

Sample:
<GetImageCodeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YJY.Auth.VerificationCode.Model">
  <ImageSpec>sample string 1</ImageSpec>
  <Timestamp>sample string 2</Timestamp>
</GetImageCodeDTO>

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 'GetImageCodeDTO'.

Response Information

Resource Description

BaseRspOfImageCodeDTO
NameDescriptionTypeAdditional information
Rsp

ImageCodeDTO

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": {
    "Id": "sample string 1",
    "CodeY": 2,
    "ImageArray": "sample string 3",
    "ImageX": 4,
    "ImageY": 5,
    "SmallImage": "sample string 6",
    "NormalImage": "sample string 7"
  },
  "Method": "sample string 1",
  "Code": 2,
  "CodeStr": "sample string 3",
  "CodeMsg": "sample string 4",
  "ExtMsg": "sample string 5",
  "ReqId": "sample string 6"
}

application/xml, text/xml

Sample:
<BaseRspOfImageCodeDTOzq4kksl2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YJY.Common.Soa.Models">
  <Code>2</Code>
  <CodeMsg>sample string 4</CodeMsg>
  <CodeStr>sample string 3</CodeStr>
  <ExtMsg>sample string 5</ExtMsg>
  <Method>sample string 1</Method>
  <ReqId>sample string 6</ReqId>
  <Rsp xmlns:d2p1="http://schemas.datacontract.org/2004/07/YJY.Auth.VerificationCode.Model">
    <d2p1:CodeY>2</d2p1:CodeY>
    <d2p1:Id>sample string 1</d2p1:Id>
    <d2p1:ImageArray>sample string 3</d2p1:ImageArray>
    <d2p1:ImageX>4</d2p1:ImageX>
    <d2p1:ImageY>5</d2p1:ImageY>
    <d2p1:NormalImage>sample string 7</d2p1:NormalImage>
    <d2p1:SmallImage>sample string 6</d2p1:SmallImage>
  </Rsp>
</BaseRspOfImageCodeDTOzq4kksl2>