GET /api/models
List all models.

Params

Param Name Description
search
Optional

필터 결과


Value:

Must be String

order
Optional

결과 정렬


Value:

Must be String

page
Optional

페이지네이션 결과


Value:

Must be String

per_page
Optional

요청 당 항목 수


Value:

Must be String


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

Params

Param Name Description
id
Required

Value:

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 model.

Params

Param Name Description
model
Required

Value:

Must be a Hash

model[name]
Required

Value:

Must be String

model[info]
Optional

Value:

Must be String

model[vendor_class]
Optional

Value:

Must be String

model[hardware_model]
Optional

Value:

Must be String


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

Params

Param Name Description
id
Required

Value:

Must be String

model
Required

Value:

Must be a Hash

model[name]
Optional

Value:

Must be String

model[info]
Optional

Value:

Must be String

model[vendor_class]
Optional

Value:

Must be String

model[hardware_model]
Optional

Value:

Must be String


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

Params

Param Name Description
id
Required

Value:

Must be String