https://kotlinlang.org logo
#ksp
Title
# ksp
l

Lukas Anda

11/21/2023, 11:23 AM
Hello everyone, I was wondering, am I able to use KSP for this specific usecase? I have a library that provides an interface with custom annotations (basically an API description that has all the paths and properties I want to use for ktor) I want to generate a set of classes that each implement the interface that is annotated with the annotation with some additional code. E.g. when the library has an interface named
StopApiService
and has on itself the annotation
@ApiService
I want to be able to generate the class
DefaultStopApiService(httpClient: HTTPClient)
and use it in my own code when I run ksp Is is actually possible?
h

Hristijan

11/21/2023, 1:54 PM
Yep
3 Views