A java rest service with swagger. It allows to get and update feature flag data.
- Java
- Docker
Swagger endpoint is available at:
# when deployed with k8s
http://{IP_ADDRESS}/feature-flag-service/swagger-ui/index.html
name | type | data type | description |
---|---|---|---|
flagId |
not required | string | The id of a flag |
To get all flags, use the same approach but without {FLAGID} parameter.
curl -X GET "http://{IP_ADDRESS}:8094/v1/flags/db_not_responding" -H "accept: */*"
name | type | data type | description |
---|---|---|---|
tag |
required | string | The flags' tag |
curl -X GET "http://{IP_ADDRESS}:8094/v1/flags?tag=problem_pattern" -H "accept: */*"
name | type | data type | description |
---|---|---|---|
flagId |
required | string | The id of a flag |
enabled |
required | boolean | Is the flag enabled or not |
curl -X PUT "http://{IP_ADDRESS}:8094/v1/flags/{flagId}/" -H "accept: application/json" -d "{\"enabled\": true}"
To disable the flag, use the same approach but with the "enabled" parameter set to false.
{
"enabled": true
}