POST api/Oferta
Actualiza o inserta una oferta en el sistema. ADMINISTRADOR
Request Information
URI Parameters
None.
Body Parameters
Oferta que se desea actualizar o insertar.
OfertaPost| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Titulo | string |
String length: inclusive between 0 and 45 |
|
| Descripcion | string |
String length: inclusive between 0 and 500 |
|
| FechaPublicacion | date |
None. |
|
| FechaVencimiento | date |
None. |
|
| FechaBaja | date |
None. |
|
| FechaCreacion | date |
None. |
|
| Rubro | Rubro |
None. |
|
| Estado | EstadoOferta |
None. |
|
| Local | Local |
None. |
|
| Stock | integer |
None. |
|
| ImagenDescatada | string |
None. |
|
| Descuento | boolean |
None. |
|
| Financiacion | boolean |
None. |
|
| Resumen | string |
Matching regular expression pattern: ^(\S{1,5})( \S{0,4}[^\s]){0,2}$ |
|
| Prioridad | integer |
None. |
|
| ImagenArchivo | HttpPostedFileBase |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Retorna OK si se realizó correctamente. Sino devuelve Conflicto el mensaje de error.
Respuesta| Name | Description | Type | Additional information |
|---|---|---|---|
| Objeto | Object |
None. |
|
| Error | ErrorMessage |
None. |
Response Formats
application/json, text/json
Sample:
{
"Objeto": {},
"Error": {
"Nro": 1,
"Texto": "sample string 2"
}
}
application/xml, text/xml
Sample:
<Respuesta xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClasesMutual">
<Error>
<Nro>1</Nro>
<Texto>sample string 2</Texto>
</Error>
<Objeto />
</Respuesta>