Skip to content
Snippets Groups Projects
Commit 01747f94 authored by Sabine Schröder's avatar Sabine Schröder
Browse files

#16: REST API for database statistics added

parent 4331b49f
No related branches found
No related tags found
No related merge requests found
Pipeline #44497 passed
......@@ -41,6 +41,20 @@ async def info():
"DF_vocabulary": settings.DF_vocab,
}
db_stats= {
"users": 358,
"stations": 13250,
"time-series": 103678,
"data records": 12010313565,
}
@app.get("/database_statistics/")
async def info():
return db_stats
@app.get('/database_statistics/{name}')
async def info(name: str):
return db_stats[name]
# Dependency
def get_db():
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment