https://github.com/thiagobarradas/environment-api
Basic API with "Get Environment" feature to use in demo projects
https://github.com/thiagobarradas/environment-api
api demo docker dotnet environment environment-variables environment-vars http microsoft rest-api
Last synced: 6 months ago
JSON representation
Basic API with "Get Environment" feature to use in demo projects
- Host: GitHub
- URL: https://github.com/thiagobarradas/environment-api
- Owner: ThiagoBarradas
- License: mit
- Created: 2019-07-19T14:56:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T03:41:06.000Z (about 1 year ago)
- Last Synced: 2025-03-23T20:05:50.749Z (7 months ago)
- Topics: api, demo, docker, dotnet, environment, environment-variables, environment-vars, http, microsoft, rest-api
- Language: C#
- Homepage: https://hub.docker.com/r/thiagobarradas/environment-api
- Size: 31.3 KB
- Stars: 2
- Watchers: 0
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://barradas.visualstudio.com/Contributions/_build/latest?definitionId=2&branchName=master)
[](https://sonarcloud.io/dashboard?id=ThiagoBarradas_environment-api)



# Environment APIA simple API that returns environment variables to use in talks, demos, etc;
## Running with Docker
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]"
}
```## How can I contribute?
Please, refer to [CONTRIBUTING](.github/CONTRIBUTING.md)## Found something strange or need a new feature?
Open a new Issue following our issue template [ISSUE TEMPLATE](.github/ISSUE_TEMPLATE.md)## 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`
