POST api/productos/insertar
Request Information
URI Parameters
None.
Body Parameters
ProductoName | Description | Type | Additional information |
---|---|---|---|
IdProducto | integer |
None. |
|
Nombre | string |
None. |
|
Descripcion | string |
None. |
|
Precio | decimal number |
None. |
|
Stock | integer |
None. |
|
IdCategoria | integer |
None. |
|
Categoria | Categoria |
None. |
Request Formats
application/json, text/json
Sample:
{ "IdProducto": 1, "Nombre": "sample string 2", "Descripcion": "sample string 3", "Precio": 4.0, "Stock": 5, "IdCategoria": 1, "Categoria": { "IdCategoria": 1, "Nombre": "sample string 2" } }
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.