I made a sample REST API with Ktor coupled with a ...
# ktor
j
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
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
The ktor dokumentation is quiet good. Server -> Developing Applications -> Features -> Locations