GET /api/models
List all hardware models

Params

Param name Description
search
optional

filter results


Value: Must be String
order
optional

sort results


Value: Must be String
page
optional

paginate results


Value: Must be String
per_page
optional

number of entries per request


Value: Must be String

GET /api/models/:id
Show a hardware model

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
Create a hardware model

Params

Param name Description
model
required

Value: Must be a Hash
model[name]
required

Value: Must be String
model[info]
optional , nil allowed

Value: Must be String
model[vendor_class]
optional , nil allowed

Value: Must be String
model[hardware_model]
optional , nil allowed

Value: Must be String

PUT /api/models/:id
Update a hardware model

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 , nil allowed

Value: Must be String
model[vendor_class]
optional , nil allowed

Value: Must be String
model[hardware_model]
optional , nil allowed

Value: Must be String

DELETE /api/models/:id
Delete a hardware model

Params

Param name Description
id
required

Value: Must be String