English     Dutch     French     German     Spanish

Wiki source code of Eniris API

Version 1.1 by Wim Verheirstraeten on 2023/10/06 18:14

Show last authors
1 Ask for the latest openapi file via [[info@eniris>>mailto:info@eniris]] or download: [[attach:openapi_02022023.yaml||target="_blank"]]
2
3 Go to: [[https:~~/~~/editor.swagger.io/>>https://editor.swagger.io/]] to open this file.
4
5
6 = **Authentication** =
7
8 You can find the API via: [[https:~~/~~/authentication.eniris.be/docs/#/Authentication/accesstoken>>https://authentication.eniris.be/docs/#/Authentication/accesstoken]]
9
10 The typical steps are:
11 1) login
12 2) create access token
13 3) query devices via GET [[https:~~/~~/api.eniris.be/v1/device>>https://api.eniris.be/v1/device]]
14
15
16 = **Collection voor postman** =
17
18
19 Hieronder is een script te vinden voor postman die helpt bij het afhandelen van de token generatie. (zie bijlage)
20
21
22 [[attach:Influx via api.postman_collection.json||target="_blank"]]
23
24 = **Access timeseries data** =
25
26 [[image:1681128242876-647.png||height="151" width="535"]]
27
28 {{video url="https://youtu.be/zpwO8mQxvt4"/}}
29
30
31 = **Access a device (building/site)** =
32
33 GET [[https:~~/~~/api.eniris.be/v1/device?id=37142>>https://api.eniris.be/v1/device?id=37142]]
34
35
36 [[image:1632835483913-618.png]]
37
38
39
40 To edit a property, use POST:
41
42
43 [[image:1632835529574-890.png]]
44
45
46
47 = =

Applications

(c) Eniris, 2024