Redis
The configuration relies on environment variables:
VMS_PORT: The port number to bind the service to. Defaults to8080.VMS_REDIS: The address of the Redis instance used as a data storage. Defaults to127.0.0.1:6379.
The API reads and returns JSON documents (content-type: application/json).
/: Returns the whole state of all applications in all environments.- Request:
GET / - Response:
- Request:
{
"vms": {
"prod": {
"backend": "0.9.5",
"frontend": "1.0.6"
},
"stg": {
"backend": "1.0.1",
"frontend": "1.1.0"
}
}
}/{app}: Returns the state of a single application in all environments.- Request:
GET /vms - Response:
- Request:
{
"prod": {
"backend": "0.9.5",
"frontend": "1.0.6"
},
"stg": {
"backend": "1.0.1",
"frontend": "1.1.0"
}
}/{app}/{environment}: Returns the state of a single application in one environment.- Request:
GET /vms/prod - Response:
- Request:
{
"backend": "0.9.5",
"frontend": "1.0.6"
}/{app}/{environment}/{component}: Returns the version of a component of a single application in one environment.- Request:
GET /vms/prod/backend - Response:
- Request:
"0.9.5"/: Returns the whole state of all applications in all environments.- Request:
POST / - Body:
- Request:
{
"vms": {
"prod": {
"backend": "0.9.5",
"frontend": "1.0.6"
},
"stg": {
"backend": "1.0.1",
"frontend": "1.1.0"
}
}
}/{app}: Returns the state of a single application in all environments.- Request:
POST /vms - Body:
- Request:
{
"prod": {
"backend": "0.9.5",
"frontend": "1.0.6"
},
"stg": {
"backend": "1.0.1",
"frontend": "1.1.0"
}
}/{app}/{environment}: Returns the state of a single application in one environment.- Request:
POST /vms/prod - Body:
- Request:
{
"backend": "0.9.5",
"frontend": "1.0.6"
}/{app}/{environment}/{component}: Returns the version of a component of a single application in one environment.- Request:
POST /vms/prod/backend - Body:
- Request:
"0.9.5"