Eliona
English
English
  • Overview
  • Guides
    • 🚀Right, let's get started!
    • Login
    • Set up a Project
    • Create User
    • Create and assign project roles
    • Add Asset
    • Create Custom Widgets
    • Add Rules
    • Install the Eliona App
    • Add BIM
    • Add Smart Assist view
    • Create a Digital Twin
    • White Labeling in Eliona
    • Image to Alarm
    • Suppressing Messages
    • Configure a meter change
    • Utilize QR-Code
    • How the “Wayfinding” works
  • Manuals
    • User Interface
    • Dashboard
      • Widget Block List
    • Alarms
    • Ticket Management
    • Rule Engine
    • Asset Management
    • Analytics & Reports
    • Smart Assist
      • SmartAssist View
      • Smart Assist Elements
    • Map
    • BIM
    • Digital Twin
    • Connection
      • MQTT
      • Webhook
      • RESTful
      • Kafka
      • OPC UA
      • Legacy
      • Format
      • Functions
    • Settings
      • Apps
        • Asset Filter
      • Templates
      • Script Engine
      • Audit Trail
      • Licence
      • System
    • Eliona Engineering
      • Users
      • Roles
      • Projects
      • Tag Management
      • Notifications Providers
      • Escalation
      • Assets Modeling
        • Asset template library
      • Asset Editor
    • Monitoring
    • Augmented Reality
    • Bookmarks
    • Notifications
  • ELIONA APPS
    • Apps
      • ABB Free@Home
      • Akenza
      • Booking
      • CoffeeCloud
      • Device Simulator
      • Exchange app
      • Glutz
      • GP Joule
      • Hailo
      • Kentix
      • KentixOne
      • Kontakt.io
      • Localino
      • Microsoft 365
      • Microsoft ADFS
      • Loriot.io
      • Niagara
      • myStrom App
      • OpenBOS
      • Renzbox
      • ROOMZ
      • SAML SSO
      • Signify
      • SpreadSheet
      • Stopwatch
      • Thingdust
      • Xovis
      • Xovis People Counter
      • Zevvy
    • Integrations
      • Niagara Module
    • App SDK
  • REFERENCES
    • Rest API
    • Engineering
  • Support Center
    • Changelog
    • FAQ
    • Service Desk
Powered by GitBook
On this page
  • Access and authentication
  • Postman Collection with Examples
  • Clients for accessing the API
  • Mock for API tests
  1. REFERENCES

Rest API

Overview of the Eliona REST API

PreviousApp SDKNextEngineering

Last updated 2 months ago

The Eliona REST API enables uniform access to the resources and data of an Eliona environment. The description of the API is available in the widely used format and can thus be reused in a variety of ways.

The Eliona App SDK enables access to Eliona via the API with pre-built libraries for different programming languages.

Access and authentication

The Eliona API can be reached via the URL path /api/v2. For example, if the URL for Eliona is https://meine.eliona.domain, then you can reach the API using the following URL:

https://my.eliona.domain/api/v2

An API key must be used for authentication. This is issued per application by the administrator of Eliona and can be provided with an expiration date. For the creation, it must be known which endpoints of the API are required and whether read or write accesses are to be made via them. The API key must be supplied in the HTTP header of the call as an X-Api key:

GET https://meine.eliona.domain/api/v2/assets/158
X-Api-Key: {{key}}

Postman Collection with Examples

A Postman collection is available with multiple request examples for easy API testing. You can import the postman_collection.json file directly into Postman using the following URL. Before using the collection, make sure to update the api-server and read-write-token variables according to your environment.

Clients for accessing the API

Clients for different programming languages

Here is an example call to generate a client for the Go programming language.

docker run --rm \
     -v "${PWD}:/local" \
     openapitools/openapi-generator-cli:v6.2.1 generate \
     -g go \
     -i https://raw.githubusercontent.com/eliona-smart-building-assistant/eliona-api/main/openapi.yaml \
     -o /local \
     --additional-properties="packageName=api"

For the programming languages Go and Python, a client is currently always updated and made available via GitHub.

Postman: Import API description

The OpenAPI description of the Eliona REST interface can be imported into Postman. Thus, all endpoints are available for querying. To do this, the following URL must be imported into Postman:

After the OpenAPI file has been imported, all endpoints are available. In order to use the API, the API key must be entered under Authorization and the respective base URL under Variables.

Mock for API tests

A corresponding Eliona mock is available for testing with the API. This can be used separately from a full Eliona environment. The mock provides a full API implementation and a simplified Eliona database using Docker networking. The matching docker-compose.yml and database definition is provided via GitHub:

With the OpenAPI description of the interface, it is possible to create suitable clients for a wide variety of programming languages using . Different methods are available for the generation. It is recommended to use the provided Docker image. The current version of the OpenAPI description is referenced for this purpose:

https://raw.githubusercontent.com/eliona-smart-building-assistant/eliona-api/refs/heads/main/examples/postman-collection.json
OpenAPI generators
https://raw.githubusercontent.com/eliona-smart-building-assistant/eliona-api/main/openapi.yaml
https://raw.githubusercontent.com/eliona-smart-building-assistant/eliona-api/main/openapi.yaml
OpenAPI
Eliona API
GitHub - eliona-smart-building-assistant/python-eliona-api-client: Python client library to access Eliona APIGitHub
Python Client fĂĽr Eliona API
GitHub - eliona-smart-building-assistant/go-eliona-api-client: Go client library to access Eliona APIGitHub
Go Client fĂĽr Eliona API
GitHub - eliona-smart-building-assistant/eliona-mock: Mocks an Eliona environmentGitHub
Eliona-Mock
Logo
Logo
Logo
Import URL fĂĽr Workspace
Logo