POST api/Users/Register
Register a new user with default role
Request Information
URI Parameters
None.
Body Parameters
User entity with details
UserEntityName | Description | Type | Additional information |
---|---|---|---|
string |
Required |
||
FirstName | string |
Required |
|
LastName | string |
Required |
|
Password | string |
Required Data type: Password |
|
ConfirmPassword | string |
Data type: Password |
Request Formats
application/json, text/json
Sample:
{ "Email": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "Password": "sample string 4", "ConfirmPassword": "sample string 5" }
application/xml, text/xml
Sample:
<UserEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyOnlineNotes.Models"> <ConfirmPassword xmlns="http://schemas.datacontract.org/2004/07/MyOnlineNotes.Models.ForViews">sample string 5</ConfirmPassword> <Email xmlns="http://schemas.datacontract.org/2004/07/MyOnlineNotes.Models.ForViews">sample string 1</Email> <FirstName xmlns="http://schemas.datacontract.org/2004/07/MyOnlineNotes.Models.ForViews">sample string 2</FirstName> <LastName xmlns="http://schemas.datacontract.org/2004/07/MyOnlineNotes.Models.ForViews">sample string 3</LastName> <Password xmlns="http://schemas.datacontract.org/2004/07/MyOnlineNotes.Models.ForViews">sample string 4</Password> </UserEntity>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
True for a successful update.
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>