POC: Adds a version API
What does this MR do and why?
It creates a simple Sinatra API with three endpoints that return the current, active, and previous versions' information. This information is fetched by:
-
ReleaseManagers::Schedule
- To be superseded by theReleases
class that reads the information fromreleases.yml
-
Versions
class that is a wrapper of versions.gitlab.com
Examples
11:44:51 ❯ curl http://127.0.0.1:4567/active_version
{"version":"16.3.0"}
11:44:55 ❯ curl http://127.0.0.1:4567/current_version
{"version":"16.2"}
11:45:04 ❯ curl http://127.0.0.1:4567/previous_versions
{"version":["16.2.5","16.1.5","16.0.9"]}
Author Check-list
- [-] Has documentation been updated?
Edited by Mayra Cabrera