Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 826 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 826 Bytes

ktor-sample

Code samples from my Talk "Developing REST APIs with Ktor"

Sample Applications

  • de.mathema.hello.HelloApplication.kt: A simple Ktor Hello World Endpoint - everything in one function
  • de.mathema.greetings.GreetingApplication.kt: A HTTP Service to manage greetings - using the embeddedServer
  • de.mathema.greetings.appconf.GreetingApplicationUsingConfigFile.kt: A HTTP Service to manage greetings - using configuration via application.conf (config file needs to be enabled first ⚠️ )

Testing Ktor applications

  • 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