geobeyond / Arpav-PPCV-backend

Backend di Piattaforma Proiezioni Climatiche per il Nord-Est.
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

Added endpoint to display current version and git commit #44

Closed ricardogsilva closed 6 months ago

ricardogsilva commented 7 months ago

This PR adds an endpoint to display version information of the backend app - Currently it shows the git commit sha and also the version of the installed python package, like this:

# GET /
{
  "version":"0.1.0",
  "git_commit":"8094b573ceceb92e1691708486c74eb1beba8106"
}

NOTE: some of the deleted code that is present in this PR is of some stuff which had already been moved to the v2/routers.py and was not being used.