GET api/Comercio/GetAll
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of ComercioDto| Name | Description | Type | Additional information |
|---|---|---|---|
| _isView | boolean |
None. |
|
| nome | string |
Required |
|
| descricao | string |
None. |
|
| numeroWhatsApp | string |
None. |
|
| numeroWhatsAppMask | string |
None. |
|
| ordemHome | byte |
None. |
|
| extensaoCapa | string |
None. |
|
| fotoCapa | string |
None. |
|
| isActive | boolean |
None. |
|
| abreAs | time interval |
Required |
|
| fechaAs | time interval |
Required |
|
| enderecoId | integer |
Required |
|
| enderecoCompleto | string |
None. |
|
| placeId | string |
None. |
|
| tipoComercioId | integer |
Required |
|
| tipoComercioNome | string |
None. |
|
| categorias | Collection of CategoriaTipoComercioDto |
None. |
|
| key | string |
None. |
|
| id | string |
None. |
|
| isNew | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"_isView": false,
"nome": "sample string 1",
"descricao": "sample string 2",
"numeroWhatsApp": "sample string 3",
"numeroWhatsAppMask": "sample string 4",
"ordemHome": 64,
"extensaoCapa": "sample string 6",
"fotoCapa": "sample string 7",
"isActive": true,
"abreAs": "00:00:00.1234567",
"fechaAs": "00:00:00.1234567",
"enderecoId": 11,
"enderecoCompleto": "sample string 12",
"placeId": "sample string 13",
"tipoComercioId": 14,
"tipoComercioNome": "sample string 15",
"categorias": [
{
"nome": "sample string 1",
"tipoId": 2,
"key": 3,
"id": 3,
"isNew": true
},
{
"nome": "sample string 1",
"tipoId": 2,
"key": 3,
"id": 3,
"isNew": true
}
],
"key": "sample string 16",
"id": "sample string 16",
"isNew": true
},
{
"_isView": false,
"nome": "sample string 1",
"descricao": "sample string 2",
"numeroWhatsApp": "sample string 3",
"numeroWhatsAppMask": "sample string 4",
"ordemHome": 64,
"extensaoCapa": "sample string 6",
"fotoCapa": "sample string 7",
"isActive": true,
"abreAs": "00:00:00.1234567",
"fechaAs": "00:00:00.1234567",
"enderecoId": 11,
"enderecoCompleto": "sample string 12",
"placeId": "sample string 13",
"tipoComercioId": 14,
"tipoComercioNome": "sample string 15",
"categorias": [
{
"nome": "sample string 1",
"tipoId": 2,
"key": 3,
"id": 3,
"isNew": true
},
{
"nome": "sample string 1",
"tipoId": 2,
"key": 3,
"id": 3,
"isNew": true
}
],
"key": "sample string 16",
"id": "sample string 16",
"isNew": true
}
]
application/xml, text/xml
Sample:
<ArrayOfComercioDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CidConnectada.Webapi.Models.Comercios">
<ComercioDto>
<isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
<key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">sample string 16</key>
<abreAs>PT0.1234567S</abreAs>
<categorias>
<CategoriaTipoComercioDto>
<isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
<key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">3</key>
<nome>sample string 1</nome>
<tipoId>2</tipoId>
</CategoriaTipoComercioDto>
<CategoriaTipoComercioDto>
<isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
<key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">3</key>
<nome>sample string 1</nome>
<tipoId>2</tipoId>
</CategoriaTipoComercioDto>
</categorias>
<descricao>sample string 2</descricao>
<enderecoCompleto>sample string 12</enderecoCompleto>
<enderecoId>11</enderecoId>
<extensaoCapa>sample string 6</extensaoCapa>
<fechaAs>PT0.1234567S</fechaAs>
<fotoCapa>sample string 7</fotoCapa>
<isActive>true</isActive>
<nome>sample string 1</nome>
<numeroWhatsApp>sample string 3</numeroWhatsApp>
<numeroWhatsAppMask>sample string 4</numeroWhatsAppMask>
<ordemHome>64</ordemHome>
<placeId>sample string 13</placeId>
<tipoComercioId>14</tipoComercioId>
<tipoComercioNome>sample string 15</tipoComercioNome>
</ComercioDto>
<ComercioDto>
<isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
<key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">sample string 16</key>
<abreAs>PT0.1234567S</abreAs>
<categorias>
<CategoriaTipoComercioDto>
<isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
<key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">3</key>
<nome>sample string 1</nome>
<tipoId>2</tipoId>
</CategoriaTipoComercioDto>
<CategoriaTipoComercioDto>
<isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew>
<key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">3</key>
<nome>sample string 1</nome>
<tipoId>2</tipoId>
</CategoriaTipoComercioDto>
</categorias>
<descricao>sample string 2</descricao>
<enderecoCompleto>sample string 12</enderecoCompleto>
<enderecoId>11</enderecoId>
<extensaoCapa>sample string 6</extensaoCapa>
<fechaAs>PT0.1234567S</fechaAs>
<fotoCapa>sample string 7</fotoCapa>
<isActive>true</isActive>
<nome>sample string 1</nome>
<numeroWhatsApp>sample string 3</numeroWhatsApp>
<numeroWhatsAppMask>sample string 4</numeroWhatsAppMask>
<ordemHome>64</ordemHome>
<placeId>sample string 13</placeId>
<tipoComercioId>14</tipoComercioId>
<tipoComercioNome>sample string 15</tipoComercioNome>
</ComercioDto>
</ArrayOfComercioDto>