Modelos Vehiculos API
Manage vehicle models. Each model belongs to a specific vehicle make (marca).Vehicle Model Object
Unique identifier for the vehicle model (auto-generated primary key)
Foreign key reference to MarcasVehiculos (the make/brand this model belongs to)
Name of the vehicle model (max 30 characters)
Status of the model (default: “Activo”)
GET /api/modelosvehiculos
Retrieve a list of all vehicle models.Query Parameters
Filter models by vehicle make ID
Filter by model name
Filter by status
Response
POST /api/modelosvehiculos
Create a new vehicle model.Request Body
ID of the vehicle make this model belongs to
Name of the vehicle model (max 30 characters)
Status of the model (defaults to “Activo” if not provided)
Request Example
Response
GET /api/modelosvehiculos/
Retrieve a specific vehicle model by ID.Path Parameters
The ID of the vehicle model
Response
GET /api/marcasvehiculos//modelos
Retrieve all models for a specific vehicle make.Path Parameters
The ID of the vehicle make
Response
PUT /api/modelosvehiculos/
Update an existing vehicle model.Path Parameters
The ID of the vehicle model to update
Request Body
Updated make ID
Updated model name
Updated status
Request Example
Response
DELETE /api/modelosvehiculos/
Delete a vehicle model.Path Parameters
The ID of the vehicle model to delete
Response
Make-Model Relationship
Vehicle models are always associated with a specific make. For example:- Toyota (make) → Corolla, Camry, RAV4 (models)
- Honda (make) → Civic, Accord, CR-V (models)
- Ford (make) → F-150, Mustang, Explorer (models)
id_marca) and model (id_modelo).
Related Endpoints
- MarcasVehiculos - Vehicle makes/brands
- Vehiculos - Vehicles (references both makes and models)