-
Notifications
You must be signed in to change notification settings - Fork 160
/
device-scopeId-deviceId.yaml
111 lines (109 loc) · 3.65 KB
/
device-scopeId-deviceId.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
openapi: 3.0.3
info:
title: Eclipse Kapua REST API - Devices
version: '1.0'
contact:
name: Eclipse Kapua Dev Team
url: https://eclipse.org/kapua
email: kapua-dev@eclipse.org
license:
name: Eclipse Public License 2.0
url: https://www.eclipse.org/legal/epl-2.0
paths:
/{scopeId}/devices/{deviceId}:
get:
tags:
- Device
summary: Get a single Device
operationId: deviceGet
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- $ref: './device.yaml#/components/parameters/deviceId'
responses:
200:
description: The details of the desired Device
content:
application/json:
schema:
$ref: './device.yaml#/components/schemas/device'
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
put:
tags:
- Device
summary: Update a single Device
operationId: deviceUpdate
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- $ref: './device.yaml#/components/parameters/deviceId'
requestBody:
description: An object containing the new properties for the Device to update
content:
application/json:
schema:
$ref: './device.yaml#/components/schemas/device'
example:
type: device
optlock: 1
status: ENABLED
clientId: Client-Id-1
displayName: Test Device
serialNumber: "1234567890"
modelId: Test Model
biosVersion: N/A
firmwareVersion: N/A
osVersion: 3.13.0-93-generic
jvmVersion: 24.111-b01 mixed mode
osgiFrameworkVersion: 1.7.0
acceptEncoding: gzip
extendedProperties:
- type: deviceExtendedProperty
groupName: Hardware Info
name: CPU Family
value: ARM
- type: deviceExtendedProperty
groupName: Hardware Info
name: CPU Cores
value: 4
tagIds: [ ]
required: true
responses:
200:
description: The details of the updated Device
content:
application/json:
schema:
$ref: './device.yaml#/components/schemas/device'
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
delete:
tags:
- Device
summary: Delete a single Device
operationId: deviceDelete
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- $ref: './device.yaml#/components/parameters/deviceId'
responses:
204:
description: The Device has been deleted
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'