POST api/Usuario/Post
Request Information
URI Parameters
None.
Body Parameters
RegisterDto| Name | Description | Type | Additional information |
|---|---|---|---|
| userName | string |
None. |
|
| nome | string |
None. |
|
| status | string |
None. |
|
| photoUrl | string |
None. |
|
| rolesList | Collection of piLookupModelOfString |
None. |
|
| string |
None. |
||
| senha | string |
Data type: Password String length: inclusive between 8 and 100 |
|
| telefone | string |
None. |
|
| key | integer |
None. |
|
| id | integer |
None. |
|
| isNew | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"userName": "sample string 1",
"nome": "sample string 2",
"status": "sample string 3",
"photoUrl": "sample string 4",
"rolesList": [
{
"value": "sample string 1",
"text": "sample string 2",
"group": "sample string 3"
},
{
"value": "sample string 1",
"text": "sample string 2",
"group": "sample string 3"
}
],
"email": "sample string 5",
"senha": "sample string 6",
"telefone": "7",
"key": 8,
"id": 8,
"isNew": true
}
application/xml, text/xml
Sample:
<RegisterDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Account">
<isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
<key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">8</key>
<email xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Tenant">sample string 5</email>
<nome xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Tenant">sample string 2</nome>
<photoUrl xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Tenant">sample string 4</photoUrl>
<rolesList xmlns:d2p1="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models.Pesquisa" xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Tenant">
<d2p1:piLookupModelOfstring>
<d2p1:group>sample string 3</d2p1:group>
<d2p1:text>sample string 2</d2p1:text>
<d2p1:value>sample string 1</d2p1:value>
</d2p1:piLookupModelOfstring>
<d2p1:piLookupModelOfstring>
<d2p1:group>sample string 3</d2p1:group>
<d2p1:text>sample string 2</d2p1:text>
<d2p1:value>sample string 1</d2p1:value>
</d2p1:piLookupModelOfstring>
</rolesList>
<senha xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Tenant">sample string 6</senha>
<status xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Tenant">sample string 3</status>
<telefone xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Tenant">7</telefone>
<userName>sample string 1</userName>
</RegisterDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.