switcher-ac
Switcher Account Control - Relay for Switcher API
2.2K
Switcher Account Control is a simple API written in Java/SpringBoot responsible for managing feature accesses to the Switcher API cloud version.
Switcher AC integrates with other services to run.
docker-compose --env-file ./docker-env/.env up
API Check - /api/check [GET]
Verifies if API is online.
No authorization required.
Swagger Definition - /v3/api-docs [GET]
Retrieve API swagger definition
Swagger UI - /swagger-ui.html
Access Swagger UI.
Use /admin/auth/github to generate API access token.
Actuator - /actuator [GET]
Retrieve actuator resources available.
Requires authentication as Admin.
After running the GitHub OAuth callback function via: https://github.com/login/oauth/authorize?client_id=APP_ID the GIT_CODE will be given to access this resource and eventually proceed with the internal authentication.
When authenticating it will be given a pair of tokens. The refresh token will be used to re-generate a new pair once the access token has expired.
Well, it logout the admin user.
Return all registered plans.
Return a specific plan.
Create new plan.
{
"name": "BASIC",
"maxDomains": 1,
"maxGroups": 5,
"maxSwitchers": 20,
"maxComponents": 5,
"maxEnvironments": 3,
"maxTeams": 5,
"maxDailyExecution": 500
}
Delete a specific plan.
Change account plan to the one especified.
Reset the number of executions for a specific account.
Switcher authorization token is required.
Create new account with defatul plan.
{
"value": "{externalId}"
}
Remove account.
{
"value": "{externalId}"
}
Execute the validation based on the name of the feature and account externalId.
{
"payload": "{ \"feature\": \"FEATURE_NAME\", \"owner\": \"EXTERNAL_ID\", \"total\": NUM_VALUE }"
}
Verify account usage.
Content type
Image
Digest
sha256:c58fba143…
Size
126.4 MB
Last updated
about 1 month ago
docker pull trackerforce/switcher-ac