https://kotlinlang.org logo
#server
Title
a

Alexander Girke

12/26/2022, 3:53 PM
Hi 👋 is anyone aware of any libraries for ktor that handle REST-related concerns like generating documentation/specs, versioning of APIs, HATEOAS-support, ...? I know there are such projects for e.g. Spring, but haven't found anything for ktor.
m

mbonnin

12/27/2022, 10:13 AM
Ktor has support for Swagger in 2.2.0
a

Alexander Girke

12/27/2022, 12:32 PM
Thanks, good to know! Any news about e.g. HATEOAS as well anyone? Thinking of something like Spring HATEOAS...
s

Sam Gammon

12/29/2022, 11:00 PM
micronaut has HATEOAS support I think
a

Alexander Girke

01/03/2023, 7:45 AM
Thank you @Sam Gammon, will look at this as well. Maybe creating a library for ktor with micronaut and spring as a template wouldn't be too difficult in the end...
s

Sam Gammon

01/04/2023, 9:17 PM
@Alexander Girke micronaut has a ktor support layer so they may actually integrate easily
I’ve never tried that one
a

Alexander Girke

01/05/2023, 8:01 AM
Crazy, wouldn't have thought that this exists. Will leave the reference here: https://micronaut-projects.github.io/micronaut-kotlin/latest/guide/
2 Views