POST api/Productos
Request Information
URI Parameters
None.
Body Parameters
Producto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Nombre | string |
None. |
|
| Costo | decimal number |
None. |
|
| Precio | decimal number |
None. |
|
| idCategoria | integer |
None. |
|
| Existencias | integer |
None. |
|
| RutaImagen | string |
None. |
|
| NombreImagen | string |
None. |
|
| CodBarra | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"nombre": "sample string 2",
"costo": 3.0,
"precio": 4.0,
"idCategoria": 5,
"existencias": 6,
"rutaImagen": "sample string 7",
"nombreImagen": "sample string 8",
"codBarra": "sample string 9"
}
text/html
Sample:
{"id":1,"nombre":"sample string 2","costo":3.0,"precio":4.0,"idCategoria":5,"existencias":6,"rutaImagen":"sample string 7","nombreImagen":"sample string 8","codBarra":"sample string 9"}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.