GET /api/models
Alle Hardwaremodelle auflisten

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

search
optional

Ergebnisse filtern

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Ergebnisse nummerieren

Validations:

  • Must be a String

per_page
optional

Anzahl der Einträge pro Anfrage

Validations:

  • Must be a String

Search fields

Field name Typ Possible values
hardware_model string
info text
name string
vendor_class string

GET /api/models/:id
Hardwaremodell anzeigen

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

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
Hardwaremodell erstellen

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

model
verpflichtend

Validations:

  • Must be a Hash

model[name]
verpflichtend

Validations:

  • Must be a String

model[info]
optional , nil erlaubt

Validations:

  • Must be a String

model[vendor_class]
optional , nil erlaubt

Validations:

  • Must be a String

model[hardware_model]
optional , nil erlaubt

Validations:

  • Must be a String


PUT /api/models/:id
Hardwaremodell aktualisieren

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

Validations:

  • Must be a String

model
verpflichtend

Validations:

  • Must be a Hash

model[name]
optional

Validations:

  • Must be a String

model[info]
optional , nil erlaubt

Validations:

  • Must be a String

model[vendor_class]
optional , nil erlaubt

Validations:

  • Must be a String

model[hardware_model]
optional , nil erlaubt

Validations:

  • Must be a String


DELETE /api/models/:id
Hardwaremodell löschen

Parameter

Parametername Beschreibung
location_id
optional

Scope nach Standorten

Validations:

  • Must be a Integer

organization_id
optional

Scope nach Organisationen

Validations:

  • Must be a Integer

id
verpflichtend

Validations:

  • Must be a String