v79
07/18/2022, 9:15 PMclass MyClass {
@Router
fun myRouter() =
route {
get("/hello") {
println("hello")
}
get("/bananas") {
println("bananas")
}
}
}
And generate an output something like this?
GET /hello com.example.MyClass
GET /bananas com.example.MyClass
I stumbled upon a medium article which suggested Dokka could do this sort of static analysis.Ignat Beresnev
07/19/2022, 11:09 AM@Router fun myRouter(): Route
, but I'm pretty sure it can't inspect function bodies out of the box, since it's not needed for API reference documentationIgnat Beresnev
07/19/2022, 11:10 AM@GetMapping("/hello")
), it'd be easy to dov79
07/19/2022, 11:14 AMv79
07/19/2022, 11:14 AMv79
07/19/2022, 11:23 AMIgnat Beresnev
07/19/2022, 12:03 PMv79
07/19/2022, 12:28 PMv79
07/19/2022, 12:28 PM