Ktor Sample
TL;DR
A simple sample of Rest API by Ktor.
This is another implementation version of Spring Boot Sample.
In Construction!
Includes
- Gradle (Kotlin DSL)
- Exposed
- Kotlin serialization
- Kotest
Architecture
application
: router/handler functions, data models (request/response), configurationscommon
: common utils, constantsdomain
: dtosinfrastructure
: repositories, tablesplugins
: plugins and settings for db, routing, security, serialization
Test APIs
- Run server.
./gradlew run
- Import Postman data from below.
/miscs/SpringBootSample.postman_collection.json
- Test with Postman.
Note: Some APIs need JWT on HTTP Request Header(Authorization: Bearer xxx
) and it will be found at HTTP Response Header when successfully logged in.