DevicesApi


Get all Devices

Get a list of available devices qualifying under a given search condition.

URL

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

HTTP Method

GET

Scope

appm:read

CURL Example

curl -X GET -H "Authorization: Bearer e0fb5670b87e2e83bbe563a7ba2c9610" -H "Content-Type: application/json" "http://localhost:9763/api/appm/store/v1.1/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

A search condition. You can search attributes by using an **\"attribute:\"** modifier. Eg. \"type:mobile\" will match an App if the provider of the App contains \"mobile\". Supported attribute modifiers are [**provider, app_name, app_version, app_id**] If no advanced attribute modifier has been specified, search will match the given query string against the App name.

String

Query

limit

optional

Maximum size of resource array to return.

Integer

25

Query

offset

optional

Starting point within the complete list of items qualified.

Integer

0

Header

Accept

optional

Media types acceptable for the response. Default is JSON.

String

JSON

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource.

String

Responses

HTTP Code Description Schema

200

OK. List of qualifying devices is returned.

DeviceList

400

Bad Request. Invalid request or validation error.

Error

403

Forbidden. The request must be conditional but no condition has been specified.

Error

404

Not Found. The resource to be updated does not exist.

Error