POST api/common/reg

注册

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

RegModel
名称说明数据类型附加信息
Phone

手机号码

string

Required

Matching regular expression pattern: ^1[3|5|8|4|7][0-9]{9}$

Code

短信验证码

string

Required

Password

密码

string

Required

Matching regular expression pattern: ^[!-~]{6,20}$

CustName

真实姓名,可选

string

Max length: 6

Min length: 2

Type

注册类别

TYPE

Required

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Phone": "sample string 1",
  "Code": "sample string 2",
  "Password": "sample string 3",
  "CustName": "sample string 4",
  "Type": 1,
  "City": "sample string 5",
  "Token": "sample string 6",
  "Platform": "sample string 7"
}

application/xml, text/xml

示例:
<RegModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 6</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</City>
  <Code>sample string 2</Code>
  <CustName>sample string 4</CustName>
  <Password>sample string 3</Password>
  <Phone>sample string 1</Phone>
  <Type>Person</Type>
</RegModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

RegResult
名称说明数据类型附加信息
ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<RegResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
</RegResult>