GET api/assettypes/search?skip={skip}&take={take}&search={search}


Searches asset types.

Request Information

URI Parameters

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional information
AssetTypesCount

integer

None.

AssetTypeListItems

Collection of API.Domain.ViewModels.AssetType.AssetTypeListItem

None.

Response Formats

application/json, text/json

Sample:
{
  "assetTypesCount": 1,
  "assetTypeListItems": [
    {
      "id": "a9fda56f-db25-40b4-af63-8b0c0746cbb6",
      "name": "sample string 2",
      "externalReference": "sample string 3",
      "system": "sample string 4",
      "systemId": "sample string 5",
      "representative": true
    },
    {
      "id": "a9fda56f-db25-40b4-af63-8b0c0746cbb6",
      "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":"a9fda56f-db25-40b4-af63-8b0c0746cbb6","name":"sample string 2","externalReference":"sample string 3","system":"sample string 4","systemId":"sample string 5","representative":true},{"id":"a9fda56f-db25-40b4-af63-8b0c0746cbb6","name":"sample string 2","externalReference":"sample string 3","system":"sample string 4","systemId":"sample string 5","representative":true}]}