NOTE: User must be logged in as admin to access this API
URL : service-desk/api/asset-type-list
Method : GET
Query Parameters :
Parameter | Type | Possible Values | Required/Optional | Description |
sort-field | String | name, created_at | Optional | Field name to sort |
sort-order | String | asc, desc | Optional | Sorting order either ascending or descending |
search-query | String | Optional | Keyword to be searched in asset type list page | |
limit | Integer | Optional | Number of records to be displayed in each page | |
page | Integer | Optional | Page number |
Success Response:
{ "success": true, "data": { "current_page": 1, "first_page_url": "http://localhost/service-desk/api/asset-type-list?page=1", "from": 1, "last_page": 5, "last_page_url": "http://localhost/service-desk/api/asset-type-list?page=5", "next_page_url": "http://localhost/service-desk/api/asset-type-list?page=2", "path": "http://localhost/service-desk/api/asset-type-list", "per_page": 10, "prev_page_url": null, "to": 10, "total": 41, "asset_types": [ { "id": 2, "name": "Cloud", "parent_id": 4, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": { "id": 4, "name": "Software" } }, { "id": 1, "name": "Services", "parent_id": 0, "is_default": 1, "created_at": "2020-04-21 11:04:13", "parent": null }, { "id": 3, "name": "Hardware", "parent_id": 0, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": null }, { "id": 4, "name": "Software", "parent_id": 0, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": null }, { "id": 5, "name": "Consumable", "parent_id": 0, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": null }, { "id": 6, "name": "Network", "parent_id": 0, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": null }, { "id": 7, "name": "Document", "parent_id": 0, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": null }, { "id": 8, "name": "Others", "parent_id": 0, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": null }, { "id": 9, "name": "Business Service", "parent_id": 0, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": null }, { "id": 10, "name": "IT Service", "parent_id": 0, "is_default": 0, "created_at": "2020-04-21 11:04:13", "parent": null } ] } }