GET api/v1/filial/unidades/basic?empresa={empresa}

Consultar todas as filiais de determinada empresa

Request Information

URI Parameters

NameDescriptionTypeAdditional information
empresa

string

Required

Requires Authorization!

Roles:

Body Parameters

None.

Response Information

Resource Description

ResultOfListOfFilialDto
NameDescriptionTypeAdditional information
Data

Collection of FilialDto

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "Codigo": 1,
      "CodigoMunicipio": 2,
      "Nome": "sample string 3",
      "Cidade": "sample string 4",
      "FilialMae": 5,
      "Uf": "sample string 6",
      "Cnpj": "sample string 7"
    },
    {
      "Codigo": 1,
      "CodigoMunicipio": 2,
      "Nome": "sample string 3",
      "Cidade": "sample string 4",
      "FilialMae": 5,
      "Uf": "sample string 6",
      "Cnpj": "sample string 7"
    }
  ],
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Lar.SicopPlus.Entities.Sicop.Dto.Filiais.EmpresaDto' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Lar.SicopPlus.Entities.Sicop.Dto.Filiais.EmpresaDto' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.