POST api/sinc/LoginContratista
Permite hacer login contratista en el sistema SINC
Request Information
URI Parameters
None.
Body Parameters
AguasNuevas_SitioWeb_ServicioWeb.WSComercial.LoginRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Usuario | string |
None. |
|
| Password | string |
None. |
|
| EmpresaId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"usuarioField": "sample string 1",
"passwordField": "sample string 2",
"empresaIdField": 3,
"PropertyChanged": null
}
application/xml, text/xml
Sample:
<LoginRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AguasNuevas_SitioWeb_ServicioWeb.WSComercial"> <PropertyChanged xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel" i:nil="true" /> <empresaIdField>3</empresaIdField> <passwordField>sample string 2</passwordField> <usuarioField>sample string 1</usuarioField> </LoginRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
AguasNuevas_SitioWeb_ServicioWeb.WSComercial.LoginResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | AguasNuevas_SitioWeb_ServicioWeb.WSComercial.Status |
None. |
|
| AccessToken | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"statusField": {
"isOKField": true,
"mensajeField": "sample string 2",
"tokenSoporteField": "sample string 3",
"PropertyChanged": null
},
"accessTokenField": "sample string 1",
"PropertyChanged": null
}
application/xml, text/xml
Sample:
<LoginResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AguasNuevas_SitioWeb_ServicioWeb.WSComercial">
<PropertyChanged xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel" i:nil="true" />
<accessTokenField>sample string 1</accessTokenField>
<statusField>
<PropertyChanged xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel" i:nil="true" />
<isOKField>true</isOKField>
<mensajeField>sample string 2</mensajeField>
<tokenSoporteField>sample string 3</tokenSoporteField>
</statusField>
</LoginResponse>