Switcher Account Control - Relay for Switcher API
2.7K
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.
mvn clean install spring-boot:run -Plocaldocker-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.
Return all registered plans.
Return a specific plan.
Create new plan.
Delete a specific plan.
Change account plan to the one specified.
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 }"
}
or
{
"payload": {
"feature": "FEATURE_NAME",
"owner": "EXTERNAL_ID",
"total": NUM_VALUE
}
}
Return rate limit allowed for an account externalId.
Return code verification used to verify deployment ownership.
Content type
Image
Digest
sha256:37d93c977…
Size
126.6 MB
Last updated
2 months ago
docker pull trackerforce/switcher-ac