https://kotlinlang.org logo
#ktor
Title
# ktor
j

Julien Salvi

01/25/2021, 11:57 AM
I made a sample REST API with Ktor coupled with a Postgres database running on a docker compose 🙂 I tried to showcase several Ktor Feature such as StatusPage, Locations, DataConversion... and other very cool external library like Valiktor, Exposed, HikariCP, Flyway...). I am also using swagger to generate my front models (that can be shared with Android apps). This is a tiny cooking API and you can fork it as you want 🙂 Feedback appreciated 🙂 Enjoy! If you have any questions feel free to ask 🙂 https://github.com/Oleur/swcook-ktor-api
👍 3
k

Kuba Petržílka

01/25/2021, 12:18 PM
Just the Locations API feels a bit weird... It is first time I see it, but there are again some annotations and some kind of magic to achieve the desired routing.. I don't like since I do not understand what is going on there from the first look at code...
f

fxnm

01/26/2021, 11:20 AM
The ktor dokumentation is quiet good. Server -> Developing Applications -> Features -> Locations
4 Views