GET /api/models
List all hardware models

Params

Param name Description
search
optional

filtrera resultat

Validations:

  • Must be a String

order
optional

sortera resultat

Validations:

  • Must be a String

page
optional

paginate results

Validations:

  • Must be a String

per_page
optional

antal poster per begäran

Validations:

  • Must be a String


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

Params

Param name Description
id
required

Validations:

  • 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

Validations:

  • Must be a Hash

model[name]
required

Validations:

  • Must be a String

model[info]
optional , nil allowed

Validations:

  • Must be a String

model[vendor_class]
optional , nil allowed

Validations:

  • Must be a String

model[hardware_model]
optional , nil allowed

Validations:

  • Must be a String


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

Params

Param name Description
id
required

Validations:

  • Must be a String

model
required

Validations:

  • Must be a Hash

model[name]
optional

Validations:

  • Must be a String

model[info]
optional , nil allowed

Validations:

  • Must be a String

model[vendor_class]
optional , nil allowed

Validations:

  • Must be a String

model[hardware_model]
optional , nil allowed

Validations:

  • Must be a String


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

Params

Param name Description
id
required

Validations:

  • Must be a String