POST api/Login
Request Information
URI Parameters
None.
Body Parameters
LoginRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| user | string |
None. |
|
| password | string |
None. |
|
| signature | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"user": "sample string 1",
"password": "sample string 2",
"signature": "sample string 3"
}
application/xml, text/xml
Sample:
<LoginRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SP_Servicio_Descuentos.Models"> <password>sample string 2</password> <signature>sample string 3</signature> <user>sample string 1</user> </LoginRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
JSONObject| Name | Description | Type | Additional information |
|---|---|---|---|
| Token | string |
None. |
|
| Command | string |
None. |
|
| Result | string |
None. |
|
| Message | string |
None. |
|
| Data | Object |
None. |
|
| Auth | JSONAuth |
None. |
Response Formats
application/json, text/json
Sample:
{
"Token": "sample string 1",
"Command": "sample string 2",
"Result": "sample string 3",
"Message": "sample string 4",
"Data": {},
"Auth": {
"authDevice": "sample string 1",
"ip": "sample string 2",
"os": "sample string 3",
"typeLogin": "sample string 4",
"path": "sample string 5"
}
}
application/xml, text/xml
Sample:
<JSONObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServicioSP.Clases">
<Auth>
<authDevice>sample string 1</authDevice>
<ip>sample string 2</ip>
<os>sample string 3</os>
<path>sample string 5</path>
<typeLogin>sample string 4</typeLogin>
</Auth>
<Command>sample string 2</Command>
<Data />
<Message>sample string 4</Message>
<Result>sample string 3</Result>
<Token>sample string 1</Token>
</JSONObject>