Atraaf is an open-source parameter manager based on environments.
curl --location --request POST '/user' \
--header 'Content-Type: application/json' \
--data-raw '{
"email":"[email protected]",
"password":"pass",
"username":"myusername",
"ssoid":"123",
"podToken":"abc"
}'
curl --location --request GET '/user'
curl --location --request POST '/user/token' \
--header 'Content-Type: application/json' \
--data-raw '{
"username":"myusername",
"password":"pass",
"podToken":"abc"
}'
curl --location --request POST '/application' \
--header 'Authorization: Bearer XXX' \ #got from getToken service
--header 'Content-Type: application/json' \
--data-raw '{
"name": "core",
"description": "sakku core"
}'
curl --location --request GET '/application/1' \
--header 'Authorization: Bearer XXX'
curl --location --request GET '/application' \
--header 'Authorization: Bearer XXX'
curl --location --request POST '/application/1' \
--header 'Authorization: Bearer XXX' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"development"
}'
curl --location --request GET '/application/1/1' \ # {appID}/{envID}
--header 'Authorization: Bearer XXX'
curl --location --request POST '/application/1/1' \
--header 'Authorization: Bearer XXX' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"key":"first.key.name",
"value":"first.keyVlue",
"global":true # this param is available for all envs
},
{
"key":"second.key.name",
"value":"second.keyVlue",
"global":false
}
]'
curl --location --request GET '/config/1/1' \ #{appID}/{envID}
--header 'key: XXXX-XXXXX' # got from getEnvByID.result.accessKey
curl --location --request GET '/config/1/1/map' \
--header 'key: ebcbe883-fda3-49d1-bb15-ea9035dcf829'