Examples

GET /api/template_kinds
200
{
  "total": 7,
  "subtotal": 7,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "iPXE",
      "id": 698706415
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "provision",
      "id": 983253650
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "PXELinux",
      "id": 452984334
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "script",
      "id": 478250810
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "finish",
      "id": 550103832
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "PXEGrub",
      "id": 131565194
    },
    {
      "created_at": "2019-09-11 14:35:59 UTC",
      "updated_at": "2019-09-11 14:35:59 UTC",
      "name": "PXEGrub2",
      "id": 701398793
    }
  ]
}

Params

Param Name Description
location_id
Optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
Optional

조직 별 범위

Validations:

  • Must be a Integer

search
Optional

필터 결과

Validations:

  • Must be a String

order
Optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
Optional

1 부터 페이지 번호

Validations:

  • Must be a number.

per_page
Optional

반환할 페이지 당 결과 수

Validations:

  • Must be a number.

Search fields

Field name 유형 Possible values
name string