GET /api/models
列出所有硬體型號

參數

參數名字 描述
search
選填

篩選結果

Validations:

  • Must be a String

order
選填

排序結果

Validations:

  • Must be a String

page
選填

編頁結果

Validations:

  • Must be a String

per_page
選填

每個請求的項目數量

Validations:

  • Must be a String


GET /api/models/:id
顯示硬體型號

參數

參數名字 描述
id
必填

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
建立硬體型號

參數

參數名字 描述
model
必填

Validations:

  • Must be a Hash

model[name]
必填

Validations:

  • Must be a String

model[info]
選填 , 允許空值

Validations:

  • Must be a String

model[vendor_class]
選填 , 允許空值

Validations:

  • Must be a String

model[hardware_model]
選填 , 允許空值

Validations:

  • Must be a String


PUT /api/models/:id
更新硬體型號

參數

參數名字 描述
id
必填

Validations:

  • Must be a String

model
必填

Validations:

  • Must be a Hash

model[name]
選填

Validations:

  • Must be a String

model[info]
選填 , 允許空值

Validations:

  • Must be a String

model[vendor_class]
選填 , 允許空值

Validations:

  • Must be a String

model[hardware_model]
選填 , 允許空值

Validations:

  • Must be a String


DELETE /api/models/:id
刪除硬體型號

參數

參數名字 描述
id
必填

Validations:

  • Must be a String