GET /api/models
Enumera todos los modelos de hardware

Params

Param Name Description
search
Optional

filtrar resultados


Value: Must be String
order
Optional

ordenar resultados


Value: Must be String
page
Optional

paginar resultados


Value: Must be String
per_page
Optional

número de entradas por petición


Value: Must be String

GET /api/models/:id
Mostrar un modelo de hardware

Params

Param Name Description
id
Required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

POST /api/models
Crear un modelo de hardware

Params

Param Name Description
model
Required

Value: Must be a Hash
model[name]
Required

Value: Must be String
model[info]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
model[vendor_class]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
model[hardware_model]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String

PUT /api/models/:id
Actualizar un modelo de hardware

Params

Param Name Description
id
Required

Value: Must be String
model
Required

Value: Must be a Hash
model[name]
Optional

Value: Must be String
model[info]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
model[vendor_class]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String
model[hardware_model]
Optional , <span class="translation_missing" title="translation missing: es.apipie.nil_allowed">Nil Allowed</span>

Value: Must be String

DELETE /api/models/:id
Borrar un modelo de hardware

Params

Param Name Description
id
Required

Value: Must be String