APIs » History » Version 1
Version 1/11
-
Next » -
Current version
Philippe May, 05/04/2021 11:27
APIs¶
Gisaf's web interface uses server's APIs, that can also be used for third party software integration, eg. for retrieving data from the database with HTTP requests.
The APIs use 2 technologies: json REST stores and Graphql.
This page is a work-in-progress documentation effort - refer to source code for a comprehensive and up to date API list and usage:
- https://redmine.auroville.org.in/projects/gisaf/repository/revisions/master/entry/gisaf/api.py
- https://redmine.auroville.org.in/projects/gisaf/repository/revisions/master/entry/gisaf/graphql_api.py
Json stores¶
Getting record values from devices¶
For the custom models that define time-based values, eg. fetched from "IoT" enabled devices such as weather stations or other sensors, the generic HTTP request scheme is:
/api/avsm_misc.weather_station/values/temperature?where=%7B%22avsm_misc.weather_station%22:4%7D&sort=%7B%22time%22:false%7D&resample=H