Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 936 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 936 Bytes

Trying my skills in Spring Boot

This is an application which allows setting and getting feature switches for users

How to run it

  1. Clone repository and change to project folder

  2. 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

Examples

  1. 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
  1. 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)