-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiary.apib
66 lines (60 loc) · 2.37 KB
/
apiary.apib
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
FORMAT: 1A
HOST: http://polls.apiblueprint.org/
# Organicity Resource Directory API
Git the available resources for the 3 Organicity sites.
## Get all entities registered in all Organicity sites [/v1/entities]
### Get all entities availabe in the central resource directory [GET]
+ Response 200 (application/json)
[
{
id: -659783864,
uuid: "urn:oc:entity:patras:weatherstation:fixed:-578724766",
name: "urn:oc:entity:patras:weatherstation:fixed:-578724766",
last_reading_at: "2015-10-22T09:40Z",
provider: {
id: 0,
uuid: "urn:oc:entity:patras",
username: "Patras",
avatar: "http://www.multistick.gr/files/images/dimos_patron.png",
url: "http://cti.gr",
joined_at: "",
location: {
city: "Patras",
country: "Greece",
country_code: "GR"
},
device_ids: [ ]
},
data: {
recorded_at: "2015-10-22T09:40Z",
location: {
latitude: 0,
longitude: 0,
city: null,
country_code: null,
country: null
},
attributes: [
{
id: 1303015757,
name: "atmosphericPressure",
unit: "bar",
updated_at: "2015-10-22T09:40Z",
attributes_id: "urn:oc:atributeType:atmosphericPressure",
value: 0,
prev_value: 0
},
{
id: -1915843409,
name: "rainfall",
unit: "mililiterPerHour",
updated_at: "2015-10-22T09:40Z",
attributes_id: "urn:oc:attributeTypes:rainfall",
value: 0,
prev_value: 0
}
]
},
entities_type: null
}
]