GET api/assettypes/search?skip={skip}&take={take}&search={search}
Searches asset types.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| skip |
Skip over this numnber of elements in the search results (e.g. 10 will discard the first 10 search results). |
integer |
Required |
| take |
Return this number of elements in the search results (e.g. 50 will return 50 results). |
integer |
Required |
| search |
The name of the asset type we wish to search for. |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
An array of asset types and the total count.
API.Domain.ViewModels.AssetType.AssetTypePage| Name | Description | Type | Additional information |
|---|---|---|---|
| AssetTypesCount | integer |
None. |
|
| AssetTypeListItems | Collection of API.Domain.ViewModels.AssetType.AssetTypeListItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"assetTypesCount": 1,
"assetTypeListItems": [
{
"id": "4c9ec3a8-9dbb-40f7-80e4-d24cf34c7d92",
"name": "sample string 2",
"externalReference": "sample string 3",
"system": "sample string 4",
"systemId": "sample string 5",
"representative": true
},
{
"id": "4c9ec3a8-9dbb-40f7-80e4-d24cf34c7d92",
"name": "sample string 2",
"externalReference": "sample string 3",
"system": "sample string 4",
"systemId": "sample string 5",
"representative": true
}
]
}
text/html
Sample:
{"assetTypesCount":1,"assetTypeListItems":[{"id":"4c9ec3a8-9dbb-40f7-80e4-d24cf34c7d92","name":"sample string 2","externalReference":"sample string 3","system":"sample string 4","systemId":"sample string 5","representative":true},{"id":"4c9ec3a8-9dbb-40f7-80e4-d24cf34c7d92","name":"sample string 2","externalReference":"sample string 3","system":"sample string 4","systemId":"sample string 5","representative":true}]}