POST api/guardarNuevoProducto

Request Information

URI Parameters

None.

Body Parameters

Producto
NameDescriptionTypeAdditional information
idProducto

integer

None.

propiedad

integer

None.

nombre

string

None.

codigo

string

None.

presentacion

integer

None.

ultimo_costo

decimal number

None.

ultimo_venta

decimal number

None.

cantidad

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "idProducto": 1,
  "propiedad": 2,
  "nombre": "sample string 3",
  "codigo": "sample string 4",
  "presentacion": 5,
  "ultimo_costo": 6.0,
  "ultimo_venta": 7.0,
  "cantidad": 8
}

application/xml, text/xml

Sample:
<Producto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/mvfwebapi.Models">
  <cantidad>8</cantidad>
  <codigo>sample string 4</codigo>
  <idProducto>1</idProducto>
  <nombre>sample string 3</nombre>
  <presentacion>5</presentacion>
  <propiedad>2</propiedad>
  <ultimo_costo>6</ultimo_costo>
  <ultimo_venta>7</ultimo_venta>
</Producto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.