GET /api/models
Lista de todos os modelos de hardware

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Classificar campo e ordem, ex.: ‘id DESC’

Validations:

  • Must be a String

page
opcional

Número de página, iniciando em 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para retornar

Validations:

  • Must be a number.

Pesquisar campos

Nome do campo Tipo Valores possíveis
hardware_model
info
name
vendor_class

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

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

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
Criar um modelo de hardware

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

model
requerido

Validations:

  • Must be a Hash

model[name]
requerido

Validations:

  • Must be a String

model[info]
opcional , nulo permitido

Validations:

  • Must be a String

model[vendor_class]
opcional , nulo permitido

Validations:

  • Must be a String

model[hardware_model]
opcional , nulo permitido

Validations:

  • Must be a String


PUT /api/models/:id
Atualizar um modelo de hardware

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String

model
requerido

Validations:

  • Must be a Hash

model[name]
opcional

Validations:

  • Must be a String

model[info]
opcional , nulo permitido

Validations:

  • Must be a String

model[vendor_class]
opcional , nulo permitido

Validations:

  • Must be a String

model[hardware_model]
opcional , nulo permitido

Validations:

  • Must be a String


DELETE /api/models/:id
Apagar um modelo de hardware

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

  • Must be a String