No description
Find a file
whysthatso 1191c06d81
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix standardrb
2024-05-22 11:11:26 +03:00
db initial commit 2024-03-14 20:18:44 +02:00
views improve index 2024-05-09 22:10:55 +03:00
.dockerignore fix multiple configuration issues 2024-03-15 10:13:05 +02:00
.gitignore fix multiple configuration issues 2024-03-15 10:13:05 +02:00
.standard.yml fix standardrb 2024-05-22 11:11:26 +03:00
.woodpecker.yml fix sqlite3 bug by pinning alpine version to 3.18 2024-03-14 21:24:02 +02:00
Dockerfile fix multiple configuration issues 2024-03-15 10:13:05 +02:00
Gemfile add standard 2024-05-09 22:11:04 +03:00
Gemfile.lock add standard 2024-05-09 22:11:04 +03:00
README.md initial commit 2024-03-14 20:18:44 +02:00
vernest.rb improve index 2024-05-09 22:10:55 +03:00

VerNest

Web Application to centraly store version strings of arbitrary things.

Endpoints

/

This page.

"/programs/new"

Form to add a new record

"/programs"

Index of all records

"/programs/:id/edit"

Form to edit an existing record

"[/programs/version&name=Foo Bar](/programs/version&name=Foo Bar)"

Returns json string with the currently recorded version string of "Foo Bar"

[{"version":"1.0"}]

cURL examples

NB basic auth has to be implemented via reverse proxy or similar.

Call to add a new record

curl -u admin:secret -d '{"name":"Example Program", "version":"1.0", "program_type":"Utility"}' -H "Content-Type: application/json" -X POST http://localhost:4567/programs

Call to receive version string by providing the program name, and optionally the program type

curl -u admin:secret -G http://localhost:4567/programs/version --data-urlencode "name=Example Program"

Call to receive all entries

curl -u admin:secret -G http://localhost:4567/programs --data-urlencode "format=json"