POST api/member/signup
会员注册
Request Information
URI Parameters
None.
Body Parameters
MemberRequestName | Description | Type | Additional information |
---|---|---|---|
username |
用户名 |
string |
None. |
password |
密码 |
string |
None. |
name |
姓名 |
string |
None. |
identity_card_type |
身份证件类型 |
IdentityCardType |
None. |
identity_card_number |
身份证件号 |
string |
None. |
邮箱 |
string |
None. |
|
phone_number |
电话号码 |
string |
None. |
code |
短信验证码 |
string |
None. |
terminal |
终端 |
Terminal |
None. |
time_stamp |
时间戳 |
string |
None. |
random |
随机数 |
integer |
None. |
sign |
签名 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "username": "sample string 1", "password": "sample string 2", "name": "sample string 3", "identity_card_type": 1, "identity_card_number": "sample string 4", "email": "sample string 5", "phone_number": "sample string 6", "code": "sample string 7", "terminal": 1, "time_stamp": "sample string 8", "random": 9, "sign": "sample string 10" }
application/xml, text/xml
Sample:
<MemberRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Areas.webApi.Models"> <random xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Models">9</random> <sign xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Models">sample string 10</sign> <terminal xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Models">WEBPAGEEnum</terminal> <time_stamp xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Models">sample string 8</time_stamp> <code>sample string 7</code> <email>sample string 5</email> <identity_card_number>sample string 4</identity_card_number> <identity_card_type>TWOGENERATIONIDCARDEnum</identity_card_type> <name>sample string 3</name> <password>sample string 2</password> <phone_number>sample string 6</phone_number> <username>sample string 1</username> </MemberRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResultOfMemberResponseName | Description | Type | Additional information |
---|---|---|---|
code | integer |
None. |
|
message | string |
None. |
|
data | MemberResponse |
None. |
Response Formats
application/json, text/json
Sample:
{ "code": 1, "message": "sample string 2", "data": { "id": "de5320b7-76a5-4c17-af8f-56de418a8ede", "username": "sample string 2", "name": "sample string 3", "identity_card_type": 1, "identity_card_number": "sample string 4", "email": "sample string 5", "phone_number": "sample string 6", "register_time": "2025-05-24T11:50:42.716925+00:00" } }
application/xml, text/xml
Sample:
<ApiResultOfMemberResponseWjQ9Dvjw xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChinaTrainTickets.Web.Areas.webApi.Models"> <code>1</code> <data> <email>sample string 5</email> <id>de5320b7-76a5-4c17-af8f-56de418a8ede</id> <identity_card_number>sample string 4</identity_card_number> <identity_card_type>TWOGENERATIONIDCARDEnum</identity_card_type> <name>sample string 3</name> <phone_number>sample string 6</phone_number> <register_time>2025-05-24T11:50:42.716925+00:00</register_time> <username>sample string 2</username> </data> <message>sample string 2</message> </ApiResultOfMemberResponseWjQ9Dvjw>