POST api/login
Login user.
Request Information
URI Parameters
None.
Body Parameters
LoginRequestViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| string |
Required |
||
| Password | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"Email": "sample string 1",
"Password": "sample string 2"
}
application/xml, text/xml
Sample:
<LoginRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apts.Api.WebApi.Models.Authentication"> <Email>sample string 1</Email> <Password>sample string 2</Password> </LoginRequestViewModel>
application/x-www-form-urlencoded
Sample:
application/x-www-form-urlencoded not supported.
Response Information
Resource Description
Access token
LoginResponseViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AccessToken |
Authentication token representing the user's session and identity. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"AccessToken": "sample string 1"
}
application/xml, text/xml
Sample:
<LoginResponseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apts.Api.WebApi.Models.Authentication"> <AccessToken>sample string 1</AccessToken> </LoginResponseViewModel>