GET /api/models
List all hardware models

Params

Param name Description
search
optional

filter results

Validations:

  • String

order
optional

sort results

Validations:

  • String

page
optional

paginate results

Validations:

  • String

per_page
optional

number of entries per request

Validations:

  • String


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

Params

Param name Description
id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..


POST /api/models
Create a hardware model

Params

Param name Description
model
required

Validations:

  • Hash

model[name]
required

Validations:

  • String

model[info]
optional , nil allowed

Validations:

  • String

model[vendor_class]
optional , nil allowed

Validations:

  • String

model[hardware_model]
optional , nil allowed

Validations:

  • String


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

Params

Param name Description
id
required

Validations:

  • String

model
required

Validations:

  • Hash

model[name]
optional

Validations:

  • String

model[info]
optional , nil allowed

Validations:

  • String

model[vendor_class]
optional , nil allowed

Validations:

  • String

model[hardware_model]
optional , nil allowed

Validations:

  • String


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

Params

Param name Description
id
required

Validations:

  • String