This is an application which allows setting and getting feature switches for users
-
Clone repository and change to project folder
-
Run application with
./mvnw spring-boot:run
**For Linux & MacOS, running for windows will be the same but with
mvwn.cmd
**On the first run, wait till dependencies are downloaded
- Create feature-user combination at
http://localhost:8080/feature
using POST request with body
{
"featureName": "test",
"email": "test",
"enable": true
}
Responses:
1. Empty 200 OK if combination was created in the database
2. Empty 304 Not modified if such combination is already present in database
-
Get feature status with GET request at
http://localhost:8080/feature?email=test&featureName=test
Response:
{ "canAccess": true }
Note
Listens on all available interfaces (0.0.0.0)