Sign inSign up

thiagobarradas/environment-api

By thiagobarradas

•Updated about 7 years ago

Simple API to get system environment vars, used in talks, demos, etc;

Image
0

1.1K

thiagobarradas/environment-api repository overview

⁠Environment API

A simple API that returns environment variables to use in talks, demos, etc;

⁠Running

Command to run Environment API (port 8088)

docker run --name environment-api -p 8088:80 -d thiagobarradas/environment-api:latest

⁠How to use

Send a request to get environment variables:

GET environment/{environmentVariables}

You can send many values in environmentVariables separated by pipe like VAR_X|VAR_Y|VAR_Z;

When some variable not exists, your value in response will be [not found]

⁠Sample

Request:

GET environment/ASPNETCORE_ENVIRONMENT|OTHER_VAR

Response:

{
  "ASPNETCORE_ENVIRONMENT": "Development",
  "OTHER_VAR": "[not found]"
}
⁠Something is wrong?

Please report the issue in GitHub that I will be as quick as possible in the fix.

⁠Did you like it? Please, make a donate :)

if you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.

BTC Wallet: 1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX

1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX

Tag summary

Content type

Image

Digest

Size

87.9 MB

Last updated

about 7 years ago

docker pull thiagobarradas/environment-api