Skip to content

Simple feature switches server written with Java 8, Spring Boot and Hibernate

Notifications You must be signed in to change notification settings

ddenya/apicrud-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)


About

Simple feature switches server written with Java 8, Spring Boot and Hibernate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages