saidsef/bump-api

By saidsef

Updated over 1 year ago

This Bump API is aimed at making stateless version numbering available via API endpoint.

Image
0

794

saidsef/bump-api repository overview

Bump API

This Bump API is aimed at making stateless version numbering available via API endpoint.

Bump API is build on top of treeder/bump

Documentation

Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor and patch), these numbers are generally assigned in increasing order and correspond to new developments in the software.

Semantic versioning (aka SemVer), currently the best known and most widely adopted version scheme in this category, uses a sequence of three digits (Major.Minor.Patch), an optional prerelease tag and optional build meta tag. In this scheme, risk and functionality are the measures of significance.

For further information

Deployment

As a container:

docker run -d -p 7070:7070 saidsef/bump-api:latest

As a Python application:

pip install -r requirements.txt

PORT=7070 bump-api.py

The Request

The quest must be POST method:

curl -XPOST http://localhost:7070/api/v1/version -H 'Content-Type: application/json' @test/bump-api.json

And the response will look like:

{
  "new_version": "2.3.1",
}

Kubernetes Deployment

kubectl apply -k ./deployment

Tag summary

Content type

Image

Digest

sha256:f2a2fcd88

Size

25.3 MB

Last updated

over 1 year ago

Requires Docker Desktop 4.37.1 or later.