Skip to content

liatrio/kotlin-ff-reference-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liatrio-api (Open Feature Sample)

This is a minimal Kotlin API app using Ktor. It exposes a single endpoint:

  • GET /hello → returns Hello, World! is enabled! yay! if the feature flag is enabled, otherwise returns Hello, World! is disabled :( if the feature flag is disabled
  • GET /testing → returns Testing! if the feature flag is enabled

How to run

Locally (with Gradle)

  1. Make sure you have JDK 17+ installed.
  2. In this directory, run:
gradle run
  1. Visit http://localhost:8080/hello

With Docker

  1. Build the Docker image:
docker build -t liatrio-api .
  1. Run the container:
docker run -p 8080:8080 liatrio-api
  1. Visit http://localhost:8080/hello

This project uses OpenFeature, Ktor and Gradle.

About

Reference API in Kotlin to show how to use OpenFeature for Jersey Mikes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published