POST api/MiBici/PostProducto
Permite Registrar un Audio o Video
Request Information
URI Parameters
None.
Body Parameters
Producto| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Identifica el producto |
integer |
None. |
| userId | integer |
None. |
|
| terceroId |
Identifica un proveedor |
integer |
None. |
| instalacionId |
Identifica una instalación de un proveedor |
integer |
None. |
| nombre |
Nombre del producto |
string |
None. |
| unidadMedidad |
Unidad de Medida |
string |
None. |
| descripcion |
Descripción del producto |
string |
None. |
| valor |
Valor del producto |
integer |
None. |
| mostrar |
Determina si el producto debe ser mostrado en la App |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"userId": 2,
"terceroId": 3,
"instalacionId": 4,
"nombre": "sample string 5",
"unidadMedidad": "sample string 6",
"descripcion": "sample string 7",
"valor": 8,
"mostrar": true
}
application/xml, text/xml
Sample:
<Producto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SIMAPI.Models.MiBici"> <Descripcion>sample string 7</Descripcion> <Id>1</Id> <InstalacionId>4</InstalacionId> <Mostrar>true</Mostrar> <Nombre>sample string 5</Nombre> <TerceroId>3</TerceroId> <UnidadMedidad>sample string 6</UnidadMedidad> <UserId>2</UserId> <Valor>8</Valor> </Producto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.