-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapiary.apib
More file actions
72 lines (52 loc) · 1.91 KB
/
apiary.apib
File metadata and controls
72 lines (52 loc) · 1.91 KB
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
FORMAT: 1A
HOST: http://polls.apiblueprint.org/
# kstnEnergy
Energy Usage API.
## Current Month Usage [/usage/current/month/{account_no}]
Search for current month energy usage based on Account No.
+ Parameters
+ account_no: 4859634 (number) - Account No for usage in the form of an integer
### View Current Month Usage [GET]
+ Response 200 (application/json)
{
"account_number": "4859634",
"name": "Karsten",
"gas_usage": "20,004 Btu",
"gas_cost": "¥ 46,896",
"electricity_usage": "3,430 kW",
"electricity_cost": "¥ 12,932",
"environment": "Japan 1",
"serviceID": "7777"
}
## Last Month Usage [/usage/last/month/{account_no}]
Search for last month energy usage based on Account No
+ Parameters
+ account_no: 4859634 (number) - Account No for usage in the form of an integer
### View Last Month Usage [GET]
+ Response 200 (application/json)
{
"account_number": "4859634",
"name": "Karsten",
"gas_usage": "30,000 Btu",
"gas_cost": "¥ 56,436",
"electricity_usage": "2,920 kW",
"electricity_cost": "¥ 8,210",
"environment": "Japan 1",
"serviceID": "7777"
}
## Estimate Usage [/estimate/{account_no}]
Search for last month energy usage based on Account No
+ Parameters
+ account_no: 4859634 (number) - Account No for estimated usage in the form of an integer
### View Estimated Usage [GET]
+ Response 200 (application/json)
{
"account_number": "4859634",
"name": "Karsten",
"gas_estimate_usage": "32,000 Btu",
"gas_estimate_cost": "¥ 63,322",
"electricity_estimate_usage": "5,325 kW",
"electricity_estimate_cost": "¥ 18,324",
"environment": "Japan 1",
"serviceID": "7777"
}