GET api/Empresas
Devuelve todas las empresas del sistema.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of EmpresasName | Description | Type | Additional information |
---|---|---|---|
Id |
Id de la Empresa |
integer |
None. |
Nombre |
Nombre de la Empresa |
string |
Required String length: inclusive between 0 and 50 |
Direccion |
Dirección de la empresa |
string |
Required String length: inclusive between 0 and 100 |
CodigoPostal |
Código Postal |
string |
Required String length: inclusive between 0 and 20 |
Poblacion |
Población |
string |
Required String length: inclusive between 0 and 100 |
Provincia |
Provincia |
string |
String length: inclusive between 0 and 100 |
Region |
Región |
string |
String length: inclusive between 0 and 100 |
Telefono |
Teléfono |
string |
Required String length: inclusive between 0 and 20 |
FK_Paises_Id |
Código alfa 2 País |
string |
Required String length: inclusive between 0 and 3 |
Activa |
Activa |
boolean |
None. |
UserClickGift |
UserClickGift |
string |
String length: inclusive between 0 and 50 |
PassClickGift |
PassClickGift |
string |
String length: inclusive between 0 and 50 |
CampaingClickGift |
CampaingClickGift |
string |
String length: inclusive between 0 and 50 |
Response Formats
application/json, text/json
[ { "Id": 1, "Nombre": "sample string 2", "Direccion": "sample string 3", "CodigoPostal": "sample string 4", "Poblacion": "sample string 5", "Provincia": "sample string 6", "Region": "sample string 7", "Telefono": "sample string 8", "FK_Paises_Id": "sample string 9", "Activa": true, "UserClickGift": "sample string 11", "PassClickGift": "sample string 12", "CampaingClickGift": "sample string 13" }, { "Id": 1, "Nombre": "sample string 2", "Direccion": "sample string 3", "CodigoPostal": "sample string 4", "Poblacion": "sample string 5", "Provincia": "sample string 6", "Region": "sample string 7", "Telefono": "sample string 8", "FK_Paises_Id": "sample string 9", "Activa": true, "UserClickGift": "sample string 11", "PassClickGift": "sample string 12", "CampaingClickGift": "sample string 13" } ]
application/xml, text/xml
<ArrayOfEmpresas xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Seed_APi_Bella_Aurora"> <Empresas> <Activa>true</Activa> <CampaingClickGift>sample string 13</CampaingClickGift> <CodigoPostal>sample string 4</CodigoPostal> <Direccion>sample string 3</Direccion> <FK_Paises_Id>sample string 9</FK_Paises_Id> <Id>1</Id> <Nombre>sample string 2</Nombre> <PassClickGift>sample string 12</PassClickGift> <Poblacion>sample string 5</Poblacion> <Provincia>sample string 6</Provincia> <Region>sample string 7</Region> <Telefono>sample string 8</Telefono> <UserClickGift>sample string 11</UserClickGift> </Empresas> <Empresas> <Activa>true</Activa> <CampaingClickGift>sample string 13</CampaingClickGift> <CodigoPostal>sample string 4</CodigoPostal> <Direccion>sample string 3</Direccion> <FK_Paises_Id>sample string 9</FK_Paises_Id> <Id>1</Id> <Nombre>sample string 2</Nombre> <PassClickGift>sample string 12</PassClickGift> <Poblacion>sample string 5</Poblacion> <Provincia>sample string 6</Provincia> <Region>sample string 7</Region> <Telefono>sample string 8</Telefono> <UserClickGift>sample string 11</UserClickGift> </Empresas> </ArrayOfEmpresas>