POST api/vehiculos
Request Information
URI Parameters
None.
Body Parameters
VehiculoDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Modelo | string |
None. |
|
| Marca | string |
None. |
|
| Tipo | string |
None. |
|
| Precio | decimal number |
None. |
|
| Anio | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Modelo": "sample string 1",
"Marca": "sample string 2",
"Tipo": "sample string 3",
"Precio": 4.0,
"Anio": 5
}
application/xml, text/xml
Sample:
<VehiculoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VehiculosAPI.Models"> <Anio>5</Anio> <Id>1</Id> <Marca>sample string 2</Marca> <Modelo>sample string 1</Modelo> <Precio>4</Precio> <Tipo>sample string 3</Tipo> </VehiculoDto>
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.