Skip to content

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

License

Notifications You must be signed in to change notification settings

wern/ktor-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages