forked from openconnectivityfoundation/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oic.wk.con.raml
executable file
·78 lines (71 loc) · 2.06 KB
/
oic.wk.con.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#%RAML 0.8
title: OCF Configuration
version: v1-20160622
documentation:
- title: OCF Copyright
content: Copyright (c) 2016, 2017 Open Connectivity Foundation, Inc. All rights reserved.
- title: OCF License
content: !include LICENSE.md
- title: OCF Disclaimer
content: !include DISCLAIMER.md
schemas:
- Configuration: !include schemas/oic.wk.con-schema.json
- Update: !include schemas/oic.wk.con-Update-schema.json
traits:
- interface-all:
queryParameters:
if:
enum: ["oic.if.rw", "oic.if.baseline"]
- interface-rw:
queryParameters:
if:
enum: ["oic.if.rw"]
/exampleDeviceConfigurationResURI:
displayName: Device Configuration
description: |
Resource that allows for Device specific information to be configured.
get:
is: ["interface-all"]
description: |
Retrieves the current Device configuration settings
responses:
200:
body:
application/json:
schema: Configuration
example: |
{
"n": "My Friendly Device Name",
"rt": ["oic.wk.con"],
"loc": [32.777,-96.797],
"locn": "My Location Name",
"c": "USD",
"r": "MyRegion",
"dl": "en"
}
post:
is: ["interface-rw"]
description: |
Update the information about the Device
body:
application/json:
schema: Update
example: |
{
"n": "Nuevo Nombre Amistoso",
"r": "MyNewRegion",
"ln": [ { "language": "es", "value": "Nuevo Nombre Amistoso" } ],
"dl": "es"
}
responses:
200:
body:
application/json:
schema: Update
example: |
{
"n": "Nuevo Nombre Amistoso",
"r": "MyNewRegion",
"ln": [ { "language": "es", "value": "Nuevo Nombre Amistoso" } ],
"dl": "es"
}