POST api/Account/Signup

用户快速注册

请求信息(Request)

URI 参数

None.

Body 参数

用户快速注册信息

SignupBindingModel
名称描述类型备注
PhoneNumber

手机号码

string

Required

Matching regular expression pattern: ^(0|86|17951)?1[0-9]{10}$

Password

密码

string

Required

Data type: Password

String length: inclusive between 6 and 100

ConfirmPassword

确认密码

string

Required

Data type: Password

VerifyCode

验证码

string

Required

请求格式

application/json, text/json

Sample:
{
  "PhoneNumber": "sample string 1",
  "Password": "sample string 2",
  "ConfirmPassword": "sample string 3",
  "VerifyCode": "sample string 4"
}

application/xml, text/xml

Sample:
<SignupBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.API.Models">
  <ConfirmPassword>sample string 3</ConfirmPassword>
  <Password>sample string 2</Password>
  <PhoneNumber>sample string 1</PhoneNumber>
  <VerifyCode>sample string 4</VerifyCode>
</SignupBindingModel>

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

响应信息(Response)

资源描述

RequestResultOfOAuthToken
名称描述类型备注
Data

OAuthToken

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json, text/json

Sample:
{
  "Data": {
    "access_token": "sample string 1",
    "token_type": "sample string 2",
    "expires_in": 3,
    "userName": "sample string 4",
    "userId": "sample string 5",
    "refresh_token": "sample string 6",
    ".issued": "sample string 7",
    ".expires": "sample string 8"
  },
  "Status": 1,
  "Message": "sample string 2",
  "Total": 3
}

application/xml, text/xml

Sample:
<RequestResultOfOAuthToken6NgmDdgv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WLife.Application">
  <Message>sample string 2</Message>
  <Status>1</Status>
  <Total>3</Total>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/WLife.Application.DTOs">
    <d2p1:AccessToken>sample string 1</d2p1:AccessToken>
    <d2p1:ExpiresAt>sample string 8</d2p1:ExpiresAt>
    <d2p1:ExpiresIn>3</d2p1:ExpiresIn>
    <d2p1:IssuedAt>sample string 7</d2p1:IssuedAt>
    <d2p1:RefreshToken>sample string 6</d2p1:RefreshToken>
    <d2p1:TokenType>sample string 2</d2p1:TokenType>
    <d2p1:UserId>sample string 5</d2p1:UserId>
    <d2p1:Username>sample string 4</d2p1:Username>
  </Data>
</RequestResultOfOAuthToken6NgmDdgv>