DevicesApi


Get all Devices

Get a list of available Devices qualifying under a given search condition.\n

URL

http://apis.wso2.com/api/appm/store/v1.0/devices

HTTP Method

GET

Scope

appm:read

CURL Example

curl -b cookies -X GET http://localhost:9763/store/api/devices

Sample Response

{"next": "","previous": "","count": 2,"deviceList":[{"name": "My Nexus","id": "11","type": "phone","platform": "android","platformVersion": "5.0","image": "/store/extensions/assets/mobileapp/resources/models/nexus.png","model": "Nexus"}]}

Parameters

Type Name Description Schema Default
Query

query

optional

**Search condition**.\n\nYou can search in attributes by using an **\"attribute:\"** modifier.\n\nEg. \"type:mobile\" will match an App if the provider of the App contains \"wso2\".\n\nSupported attribute modifiers are [*provider, app_name, app_version, app_id**]\n\nIf no advanced attribute modifier has been specified, search will match the\ngiven query string against App Name.\n

String

Query

limit

optional

Maximum size of resource array to return.\n

Integer

25

Query

offset

optional

Starting point within the complete list of items qualified.\n

Integer

0

Header

Accept

optional

Media types acceptable for the response. Default is JSON.\n

String

JSON

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved\nvariant of the resourec.\n

String

Responses

HTTP Code Description Schema

200

OK.\nList of qualifying Devices are returned.\n

DeviceList

400

Bad Request.\nInvalid request or validation error.\n

Error

403

Forbidden.\nThe request must be conditional but no condition has been specified.\n

Error

404

Not Found.\nThe resource to be updated does not exist.\n

Error