POST api/Authentication/LoginPost
Only for internal use.
Request Information
URI Parameters
None.
Body Parameters
LoginBindingModelName | Description | Type | Additional information |
---|---|---|---|
Username | string |
Required |
|
Password | string |
Required |
Request Formats
application/json, text/json
Sample:
{ "Username": "sample string 1", "Password": "sample string 2" }
application/xml, text/xml
Sample:
<LoginBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XS2.WMSWebApi.Models"> <Password>sample string 2</Password> <Username>sample string 1</Username> </LoginBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
RootobjectName | Description | Type | Additional information |
---|---|---|---|
access_token |
The Web Api Access Token. Gets added to the Header in each communication. |
string |
None. |
token_type |
The Token Type |
string |
None. |
expires_in |
Expiry. |
integer |
None. |
Username |
The Username. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "access_token": "sample string 1", "token_type": "sample string 2", "expires_in": 3, "Username": "sample string 4" }
application/xml, text/xml
Sample:
<Rootobject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XS2.WMSWebApi.Controllers"> <Username>sample string 4</Username> <access_token>sample string 1</access_token> <expires_in>3</expires_in> <token_type>sample string 2</token_type> </Rootobject>