forked from openconnectivityfoundation/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoic.wk.d.raml
executable file
·44 lines (40 loc) · 1.15 KB
/
oic.wk.d.raml
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
#%RAML 0.8
title: OIC Root Device
version: v1-20160622
documentation:
- title: OCF Copyright
content: Copyright (c) 2016 Open Connectivity Foundation, Inc. All rights reserved.
- title: OCF License
content: !include LICENSE.md
- title: OCF Disclaimer
content: !include DISCLAIMER.md
schemas:
- Device: !include schemas/oic.wk.d-schema.json
traits:
- interface:
queryParameters:
if:
enum: ["oic.if.r", "oic.if.baseline"]
/oic/d:
displayName: Device
is: [ interface ]
description: |
Known resource that is hosted by every Server.
Allows for logical device specific information to be discovered.
get:
description: |
Retrieve the information about the Device
responses:
200:
body:
application/json:
schema: Device
example: |
{
"n": "Device 1",
"rt": ["oic.wk.d"],
"di": "54919CA5-4101-4AE4-595B-353C51AA983C",
"icv": "ocf.1.0.0",
"dmv": "ocf.res.1.0.0, ocf.sh.1.0.0",
"piid": "6F0AAC04-2BB0-468D-B57C-16570A26AE48"
}