/KtorSample

A simple sample of Ktor.

Primary LanguageKotlin

Ktor Sample

TL;DR

A simple sample of Rest API by Ktor.

This is another implementation version of Spring Boot Sample.

In Construction!

Includes

Architecture

  • application: router/handler functions, data models (request/response), configurations
  • common: common utils, constants
  • domain: dtos
  • infrastructure: repositories, tables
  • plugins: plugins and settings for db, routing, security, serialization

Test APIs

  1. Run server.
./gradlew run
  1. Import Postman data from below.
/miscs/SpringBootSample.postman_collection.json
  1. 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.