Skip to content

andrewbruno/kotlin-dropwizard

Repository files navigation

kotlin-dropwizard

A simple Kotlin Dropwizard microservice with a hello world GET API.

Features

  • Minimal Kotlin Dropwizard application
  • Hello World REST endpoint at /hello
  • Returns JSON response: {"message": "Hello, World!"}

Build and Run

  1. Build the application:
mvn clean package
  1. Run the application:
java -jar target/kotlin-dropwizard-1.0.0.jar server config.yml
  1. Test the API:
curl http://localhost:8080/hello

Expected response:

{"message": "Hello, World!"}

Endpoints

Project Structure

  • src/main/kotlin/com/example/HelloWorldApplication.kt - Main application class
  • src/main/kotlin/com/example/HelloWorldResource.kt - REST resource with GET endpoint
  • src/main/kotlin/com/example/HelloWorldConfiguration.kt - Configuration class
  • config.yml - Application configuration
  • pom.xml - Maven build configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published