Table of Contents |
---|
...
This WS is designed to return details of Device definition using its identifier.
Used to return device definition with the old structure only.
Will be deprecated
Specification
Page Properties | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
|
Filters
Filter | Values | Type | Description | Example |
---|---|---|---|---|
id | String | Device definition identifier |
|
...
Get all device_definitions (PRM database) where device_definitions.classification_type is not empty.
Get data from program_devices (PRM database) with following params:
device_definition_id =
id
from URLis_active = true
start_date <= current date()
end_date >= current_date(), if not null
Render a response according to specification
...
Check that device definition with such ID exists in the system
in case of error - return 404 ('Device definition is not found')
Check device_definitions.classification_type field is not empty.
in case of error - return 409 ('Use v2 route for this device definitionversion of API')
Headers
Content-Type:application/json
...