POST api/Authenticate
Request Information
URI Parameters
None.
Body Parameters
AuthenticationRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
None. |
|
| password | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"username": "sample string 1",
"password": "sample string 2"
}
application/xml, text/xml
Sample:
<AuthenticationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Von_Forms_Web.Models.Authentication.Request"> <password>sample string 2</password> <username>sample string 1</username> </AuthenticationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AuthenticationResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| token | string |
None. |
|
| Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"token": "sample string 2",
"Errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<AuthenticationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Von_Forms_Web.Models.Authentication.Response">
<Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Errors>
<success>true</success>
<token>sample string 2</token>
</AuthenticationResponse>