POST api/Mercados

Request Information

URI Parameters

None.

Body Parameters

Mercados
NameDescriptionTypeAdditional information
IdMercado

integer

None.

IdCiudad

integer

None.

Mercado

string

None.

Ciudades

Ciudades

None.

Clientes

Collection of Clientes

None.

Request 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.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Mercados'.

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.