GET api/Mercados/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Mercados
NameDescriptionTypeAdditional information
IdMercado

integer

None.

IdCiudad

integer

None.

Mercado

string

None.

Ciudades

Ciudades

None.

Clientes

Collection of Clientes

None.

Response Formats

application/json, text/json

Sample:
{
  "IdMercado": 1,
  "IdCiudad": 1,
  "Mercado": "sample string 2",
  "Ciudades": {
    "IdCiudad": 1,
    "Ciudad": "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: Object graph for type 'System.Collections.Generic.List`1[[WebAPI.Models.EmpresaCiudad, WebAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[WebAPI.Models.EmpresaCiudad, WebAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.