POST api/Produto/InsertMarca

Request Information

URI Parameters

None.

Body Parameters

Collection of MarcaDto
NameDescriptionTypeAdditional information
nome

string

None.

key

integer

None.

id

integer

None.

isNew

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "nome": "sample string 1",
    "key": 2,
    "id": 2,
    "isNew": true
  },
  {
    "nome": "sample string 1",
    "key": 2,
    "id": 2,
    "isNew": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfMarcaDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Produto">
  <MarcaDto>
    <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">2</key>
    <nome>sample string 1</nome>
  </MarcaDto>
  <MarcaDto>
    <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">2</key>
    <nome>sample string 1</nome>
  </MarcaDto>
</ArrayOfMarcaDto>

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 'IList`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.