Skip to main content

Marcas Vehiculos API

Manage vehicle makes/brands.

Vehicle Make Object

id_marca
integer
required
Unique identifier for the vehicle make (auto-generated primary key)
nombre
string
required
Name of the vehicle make/brand (max 15 characters)
estado
string
Status of the make (default: “Activo”)

GET /api/marcasvehiculos

Retrieve a list of all vehicle makes.

Query Parameters

nombre
string
Filter by make name
estado
string
Filter by status

Response

[
  {
    "id_marca": 1,
    "nombre": "Toyota",
    "estado": "Activo"
  },
  {
    "id_marca": 2,
    "nombre": "Honda",
    "estado": "Activo"
  },
  {
    "id_marca": 3,
    "nombre": "Ford",
    "estado": "Activo"
  },
  {
    "id_marca": 4,
    "nombre": "Chevrolet",
    "estado": "Activo"
  },
  {
    "id_marca": 5,
    "nombre": "Nissan",
    "estado": "Activo"
  }
]

POST /api/marcasvehiculos

Create a new vehicle make.

Request Body

nombre
string
required
Name of the vehicle make (max 15 characters)
estado
string
Status of the make (defaults to “Activo” if not provided)

Request Example

{
  "nombre": "Mazda",
  "estado": "Activo"
}

Response

{
  "id_marca": 6,
  "nombre": "Mazda",
  "estado": "Activo"
}

GET /api/marcasvehiculos/

Retrieve a specific vehicle make by ID.

Path Parameters

id_marca
integer
required
The ID of the vehicle make

Response

{
  "id_marca": 1,
  "nombre": "Toyota",
  "estado": "Activo"
}

PUT /api/marcasvehiculos/

Update an existing vehicle make.

Path Parameters

id_marca
integer
required
The ID of the vehicle make to update

Request Body

nombre
string
Updated name of the vehicle make
estado
string
Updated status of the make

Request Example

{
  "nombre": "Toyota Motors",
  "estado": "Activo"
}

Response

{
  "id_marca": 1,
  "nombre": "Toyota Motors",
  "estado": "Activo"
}

DELETE /api/marcasvehiculos/

Delete a vehicle make.

Path Parameters

id_marca
integer
required
The ID of the vehicle make to delete

Response

{
  "message": "Vehicle make deleted successfully"
}

Build docs developers (and LLMs) love