Store configurations for multiple applications in one place
pip install -r requirements.txt
Run serve.py --environment prod.
On the first run a master token will be printed.
If you lost the master token you can find it in storage/__tokens.json (link only works locally)
You can use any http client like REST Client to work with API
Get a token for an exampleApp app
GET http://localhost:5000/token/exampleApp/new
token: insert master token hereUse a token you received in the last step
PUT http://localhost:5000/configuration/chat
token: insert exampleApp token here
{ "foo": "bar" }Get exampleApp config using an HTTP request
GET http://localhost:5000/configuration/exampleApp
token: insert exampleApp token hereBy default FastConfig is serving on localhost:5000
You can configure FastConfig server using the following environment variables:
HOST- serve host (ex.127.0.0.1)PORT- serve port (ex.6000)
To work with API you have to add a token header containing your token.
Token access levels:
master token- create and update app tokens
- get and update any configuration
app token- get and update only its app configuration
Variable values are marked with *...* (ex. *appId*)
/token/*appId*/new
- first request creates a token, next ones update the token
/configuration/*appId*
- GET - get stored config
- PUT - send a new config, delete previous one
/configuration
- GET - get configs for all apps as a single json
C#- dotnet client
Support for other languages coming soon.