GET api/estancos/empresa/{idEmpresa}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| idEmpresa | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Estanco| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| idEmpresa | integer |
None. |
|
| nif | string |
Required String length: inclusive between 0 and 10 |
|
| nombre | string |
Required String length: inclusive between 0 and 100 |
|
| propietario | string |
Required String length: inclusive between 0 and 100 |
|
| direccion | string |
Required String length: inclusive between 0 and 100 |
|
| poblacion | string |
Required String length: inclusive between 0 and 45 |
|
| cp | string |
Required String length: inclusive between 0 and 5 |
|
| provincia | string |
Required String length: inclusive between 0 and 45 |
|
| telefono | string |
String length: inclusive between 0 and 15 |
|
| fax | string |
String length: inclusive between 0 and 15 |
|
| movil | string |
String length: inclusive between 0 and 15 |
|
| string |
String length: inclusive between 0 and 100 |
||
| lat | decimal number |
None. |
|
| lng | decimal number |
None. |
|
| idComisionado | string |
String length: inclusive between 0 and 10 |
|
| stratorPDV_code | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"idEmpresa": 2,
"nif": "sample string 3",
"nombre": "sample string 4",
"propietario": "sample string 5",
"direccion": "sample string 6",
"poblacion": "sample string 7",
"cp": "sample string 8",
"provincia": "sample string 9",
"telefono": "sample string 10",
"fax": "sample string 11",
"movil": "sample string 12",
"email": "sample string 13",
"lat": 1.1,
"lng": 1.1,
"idComisionado": "sample string 14",
"stratorPDV_code": 1
},
{
"id": 1,
"idEmpresa": 2,
"nif": "sample string 3",
"nombre": "sample string 4",
"propietario": "sample string 5",
"direccion": "sample string 6",
"poblacion": "sample string 7",
"cp": "sample string 8",
"provincia": "sample string 9",
"telefono": "sample string 10",
"fax": "sample string 11",
"movil": "sample string 12",
"email": "sample string 13",
"lat": 1.1,
"lng": 1.1,
"idComisionado": "sample string 14",
"stratorPDV_code": 1
}
]
application/xml, text/xml
Sample:
<ArrayOfEstanco xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VendingAPI.Models">
<Estanco>
<cp>sample string 8</cp>
<direccion>sample string 6</direccion>
<email>sample string 13</email>
<fax>sample string 11</fax>
<id>1</id>
<idComisionado>sample string 14</idComisionado>
<idEmpresa>2</idEmpresa>
<lat>1.1</lat>
<lng>1.1</lng>
<movil>sample string 12</movil>
<nif>sample string 3</nif>
<nombre>sample string 4</nombre>
<poblacion>sample string 7</poblacion>
<propietario>sample string 5</propietario>
<provincia>sample string 9</provincia>
<stratorPDV_code>1</stratorPDV_code>
<telefono>sample string 10</telefono>
</Estanco>
<Estanco>
<cp>sample string 8</cp>
<direccion>sample string 6</direccion>
<email>sample string 13</email>
<fax>sample string 11</fax>
<id>1</id>
<idComisionado>sample string 14</idComisionado>
<idEmpresa>2</idEmpresa>
<lat>1.1</lat>
<lng>1.1</lng>
<movil>sample string 12</movil>
<nif>sample string 3</nif>
<nombre>sample string 4</nombre>
<poblacion>sample string 7</poblacion>
<propietario>sample string 5</propietario>
<provincia>sample string 9</provincia>
<stratorPDV_code>1</stratorPDV_code>
<telefono>sample string 10</telefono>
</Estanco>
</ArrayOfEstanco>