This is a minimal Kotlin API app using Ktor. It exposes a single endpoint:
GET /hello
→ returnsHello, World! is enabled! yay!
if the feature flag is enabled, otherwise returnsHello, World! is disabled :(
if the feature flag is disabledGET /testing
→ returnsTesting!
if the feature flag is enabled
- Make sure you have JDK 17+ installed.
- In this directory, run:
gradle run
- Build the Docker image:
docker build -t liatrio-api .
- Run the container:
docker run -p 8080:8080 liatrio-api
This project uses OpenFeature, Ktor and Gradle.