Code samples from my Talk "Developing REST APIs with Ktor"
de.mathema.hello.HelloApplication.kt
: A simple Ktor Hello World Endpoint - everything in one functionde.mathema.greetings.GreetingApplication.kt
: A HTTP Service to manage greetings - using theembeddedServer
de.mathema.greetings.appconf.GreetingApplicationUsingConfigFile.kt
: A HTTP Service to manage greetings - using configuration viaapplication.conf
(config file needs to be enabled first⚠️ )
de.mathema.greetings.GreetingApplicationTest.kt
: Test using 'in code configuration' for test setup - does not suceed if application.conf is enabled⚠️ de.mathema.greetings.appconf.GreetingApplicationUsingConfigFileTest.kt
: Test using config files for test setup