POST api/Login
Request Information
URI Parameters
None.
Body Parameters
LoginRequestModel| 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:
<LoginRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MySilver.WebApi.Models"> <Password>sample string 2</Password> <Username>sample string 1</Username> </LoginRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
LoginResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Username | string |
None. |
|
| Token | globally unique identifier |
None. |
|
| Cliente | string |
None. |
|
| DescrizioneUtente | string |
None. |
|
| PushToken | string |
None. |
|
| RichiestoCambioPassword | boolean |
None. |
|
| ProfiloGestioneAvanzata | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Username": "sample string 1",
"Token": "84c2b8cb-5285-4168-95c8-61ff503bdc84",
"Cliente": "sample string 3",
"DescrizioneUtente": "sample string 4",
"PushToken": "sample string 5",
"RichiestoCambioPassword": true,
"ProfiloGestioneAvanzata": true
}
application/xml, text/xml
Sample:
<LoginResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MySilver.WebApi.Models"> <Cliente>sample string 3</Cliente> <DescrizioneUtente>sample string 4</DescrizioneUtente> <ProfiloGestioneAvanzata>true</ProfiloGestioneAvanzata> <PushToken>sample string 5</PushToken> <RichiestoCambioPassword>true</RichiestoCambioPassword> <Token>84c2b8cb-5285-4168-95c8-61ff503bdc84</Token> <Username>sample string 1</Username> </LoginResponseModel>