-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoic.r.linkbinding.raml
64 lines (51 loc) · 1.39 KB
/
oic.r.linkbinding.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
59
60
61
62
63
64
#%RAML 0.8
# RAML for OCF link binding
# dynamic association of state changes in one resource with
# state updates to another resource
#
title: OCF Link Binding
version: 0.1
documentation:
- title: OCF link binding
content: |
Link Binding
schemas:
- schema-baseline: !include schemas/linkbinding.schema-baseline.json
- schema-r: !include schemas/linkbinding.schema-r.json
- schema-rw: !include schemas/linkbinding.schema-rw.json
traits:
- interface-baseline:
queryParameters:
if:
enum: ["oic.if.baseline"]
- interface-r:
queryParameters:
if:
enum: ["oic.if.r"]
- interface-rw:
queryParameters:
if:
enum: ["oic.if.rw"]
/LinkBindingURI?if=oic.if.r:
description: |
The oic.if.r interfaces exposes a representation of
the readable properties
displayName: Link Binding Readable Properties
is: [ interface-r]
get:
description: |
Retrieve on Readable Interface
responses:
200:
body:
application/json:
schema: schema-r
example: |
{
"href": "ocf:7c641530-d362-462b-a347-601032b6698d/light/switch",
"anchor": "/switch",
"accept.if": "oic.if.s",
"rel": "monitor",
"transfer.method": "coap.post",
"transfer.if": "oic.if.a",
}