POST api/UserAccount/signup
api สำหรับการสมัครเพื่อเข้าระบบสำหรับยูซเซอร์ทั่วไป
Request Information
URI Parameters
None.
Body Parameters
md_signUp| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
Matching regular expression pattern: ^(?=[a-zA-Z])[-\w.]{0,23}([a-zA-Z\d]|(?<![-.])_)$ String length: inclusive between 0 and 50 |
|
| password | string |
Matching regular expression pattern: ^(?=.*).{4,}$ String length: inclusive between 0 and 255 |
|
| ConfirmPassword | string |
Matching regular expression pattern: ^(?=.*).{4,}$ String length: inclusive between 0 and 255 |
|
| department_id | string |
Required String length: inclusive between 0 and 2 |
|
| firstname | string |
String length: inclusive between 0 and 100 |
|
| lastname | string |
String length: inclusive between 0 and 100 |
|
| phone_num | string |
String length: inclusive between 0 and 10 |
|
| string |
Matching regular expression pattern: \A(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)\Z String length: inclusive between 0 and 255 |
Request Formats
application/json, text/json
{
"username": "sample string 1",
"password": "sample string 2",
"ConfirmPassword": "sample string 3",
"department_id": "sample string 4",
"firstname": "sample string 5",
"lastname": "sample string 6",
"phone_num": "sample string 7",
"email": "sample string 8"
}
application/xml, text/xml
<md_signUp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.UserAccount"> <ConfirmPassword>sample string 3</ConfirmPassword> <department_id>sample string 4</department_id> <email>sample string 8</email> <firstname>sample string 5</firstname> <lastname>sample string 6</lastname> <password>sample string 2</password> <phone_num>sample string 7</phone_num> <username>sample string 1</username> </md_signUp>
application/x-www-form-urlencoded
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.