EIDA / eida-statistics

Aggregated statistics of EIDA nodes
GNU General Public License v3.0
0 stars 0 forks source link

Use a templating system for the documentation #17

Closed jschaeff closed 1 year ago

jschaeff commented 1 year ago

In order to insert dynamic content (like the full URL) in the documentation, it would be interesting to use a templating system (jinja2 is a popular option).

The URL prefix can be taken from an environment variable like

EIDASTATS_API_HOST=server.exemple.gr
EIDASTATS_API_PATH=/eidaws/statistics/1
vpet98 commented 1 year ago

Just a minor detail: The webservice works, but a double slash appears after the API path, like statistics/1//dataselect. I can remove the one from the name of the method, but maybe it is better to remove it from the EIDASTATS_API_PATH variable?