GET api/account/validate?username={username}
This method will validate provided username(e-mail) against users in our db and will return a min user profile data if user was located
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| username |
Base64 encoded username |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Instance of UserMinProfile
UserMinProfile| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| UserName | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| EmailConfirmed | boolean |
None. |
|
| LockoutEnabled | boolean |
None. |
|
| Avatar | string |
None. |
|
| AccountVerified | boolean |
None. |
|
| PasswordSet | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"userId": 1,
"userName": "sample string 2",
"firstName": "sample string 3",
"lastName": "sample string 4",
"emailConfirmed": true,
"lockoutEnabled": true,
"avatar": "sample string 7",
"accountVerified": true,
"passwordSet": true
}
text/html
Sample:
{"userId":1,"userName":"sample string 2","firstName":"sample string 3","lastName":"sample string 4","emailConfirmed":true,"lockoutEnabled":true,"avatar":"sample string 7","accountVerified":true,"passwordSet":true}
application/xml, text/xml
Sample:
<UserMinProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Pos"> <AccountVerified>true</AccountVerified> <Avatar>sample string 7</Avatar> <EmailConfirmed>true</EmailConfirmed> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <LockoutEnabled>true</LockoutEnabled> <PasswordSet>true</PasswordSet> <UserId>1</UserId> <UserName>sample string 2</UserName> </UserMinProfile>