POST api/Auth/GetAccessToken
Request Information
URI Parameters
None.
Body Parameters
TokenSignInModel| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
None. |
|
| password | string |
None. |
|
| loginRedirectPath | string |
None. |
|
| logoutRedirectPath | string |
None. |
|
| tokenErrorRedirectPath | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"username": "sample string 1",
"password": "sample string 2",
"loginRedirectPath": "sample string 3",
"logoutRedirectPath": "sample string 4",
"tokenErrorRedirectPath": "sample string 5"
}
application/xml, text/xml
Sample:
<TokenSignInModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoilEssentials.API.Models"> <loginRedirectPath>sample string 3</loginRedirectPath> <logoutRedirectPath>sample string 4</logoutRedirectPath> <password>sample string 2</password> <tokenErrorRedirectPath>sample string 5</tokenErrorRedirectPath> <username>sample string 1</username> </TokenSignInModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |