forked from openconnectivityfoundation/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oic.wk.res.raml
executable file
·58 lines (52 loc) · 1.52 KB
/
oic.wk.res.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#%RAML 0.8
title: Discoverable Resources
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:
- Resources: !include schemas/oic.wk.res-schema.json
traits:
- interface:
queryParameters:
if:
enum: ["oic.if.ll", "oic.if.baseline"]
/oic/res:
displayName: Discoverable Resources
is: [ interface ]
description: |
The resource through which the corresponding Server is discovered and introspected for available resources.
get:
description: |
Retrieve the discoverable resource set
responses:
200:
body:
application/json:
schema: Resources
example: |
[
{
"rt": ["oic.wk.res"],
"di": "0685B960-736F-46F7-BEC0-9E6CBD61ADC1",
"links":
[
{
"href": "/res",
"rel": "self",
"rt": ["oic.r.collection"],
"if": ["oic.if.ll"]
},
{
"href": "/smartDevice",
"rel": "contained",
"rt": ["oic.d.smartDevice"],
"if": ["oic.if.a"]
}
]
}
]