api/v1/devices

Method: GET https://simportal-api-staging.azurewebsites.net/api/v1/devices?skip={skip}&take={take}

Summary

Get a list of devices that belongs to a customer. Parameters are completely optional

Request Information

URI Parameters

NameDescriptionTypeAdditional information
skip

The number of records to skip

integer

None.

take

The number of records to take

integer

Default value is 100

Body Parameters

None.

Response Information

Resource Description

Collection of DeviceModel
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CustomerId

globally unique identifier

None.

SerialNumber

string

None.

Manufacturer

string

None.

Model

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "0d245c37-9db7-4f3d-b3f4-bc4e472a97e7",
    "CustomerId": "64d3796a-99cf-40d4-8d27-54d1d14c106b",
    "SerialNumber": "sample string 3",
    "Manufacturer": "sample string 4",
    "Model": "sample string 5"
  },
  {
    "Id": "0d245c37-9db7-4f3d-b3f4-bc4e472a97e7",
    "CustomerId": "64d3796a-99cf-40d4-8d27-54d1d14c106b",
    "SerialNumber": "sample string 3",
    "Manufacturer": "sample string 4",
    "Model": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SimPortalApi.Controllers">
  <DeviceModel>
    <CustomerId>64d3796a-99cf-40d4-8d27-54d1d14c106b</CustomerId>
    <Id>0d245c37-9db7-4f3d-b3f4-bc4e472a97e7</Id>
    <Manufacturer>sample string 4</Manufacturer>
    <Model>sample string 5</Model>
    <SerialNumber>sample string 3</SerialNumber>
  </DeviceModel>
  <DeviceModel>
    <CustomerId>64d3796a-99cf-40d4-8d27-54d1d14c106b</CustomerId>
    <Id>0d245c37-9db7-4f3d-b3f4-bc4e472a97e7</Id>
    <Manufacturer>sample string 4</Manufacturer>
    <Model>sample string 5</Model>
    <SerialNumber>sample string 3</SerialNumber>
  </DeviceModel>
</ArrayOfDeviceModel>