-
Notifications
You must be signed in to change notification settings - Fork 0
/
electricityTariff.raml
52 lines (47 loc) · 1.62 KB
/
electricityTariff.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
#%RAML 0.8
title: OICElectricityTariff
version: v1.1.0-20160519
schemas:
- Usage: !include oic.r.electricity.tariff.json
traits:
- interface:
queryParameters:
if:
enum: ["oic.if.ll","oic.if.b","oic.if.baseline"]
/ElectricityTariffResURI:
description: |
This resource describes a time-based electricity pricing query.
The resource is a composite resource being made up as a collection of:
TimePeriod Resource
ElectricityPrice Resource
displayName: Electricity Tariff
is: [ interface ] # valid for all methods
get:
description: |
Retrieves the electricity tariff information containing all of the different electricity prices and time periods which have been active within the requested time period.
responses:
200:
body:
application/json:
schema: Tariff
example: |
{
"rt": ["oic.r.electricity.tariff"],
"id": "unique_example_id",
"resources": [
{
"href": "/TimeIntervalResURI",
"rel": "contains",
"rt": ["oic.r.time.period"],
"if": ["oic.if.a"],
"eps": [{"ep": "coaps://[fe80::b1d6]:1122"}]
},
{
"href": "/ElectricityPriceResURI",
"rel": "contains",
"rt": ["oic.r.electricity.price"],
"if": ["oic.if.s"],
"eps": [{"ep": "coaps://[fe80::b1d6]:1122"}]
}
]
}