digma-ai / digma-intellij-plugin

Digma JetBrains plugin
MIT License
32 stars 7 forks source link

Kotlin - verify support for Frameworks GRPC/JAX-RS/Micronaut #1472

Open shaykeren opened 11 months ago

arik-dig commented 10 months ago

seeing that JAX-RS isn't working with Kotlin how to reproduce:

1) add dependency:

implementation("javax.ws.rs:jsr311-api:1.1.1")

2) create Kotlin class (which has HTTP GET /owners/find:

import javax.ws.rs.GET
import javax.ws.rs.Path

@Path("/owners")
class AaaOwnCtrlr {

    @Path("/find")
    @GET
    fun doFind() {

    }
}

3) make sure you browsed to http://localhost:9754/owners/find so you'll have some insights on /owners/find

4) now focus on method doFind - you should see the insights. like you're focused on:

    @GetMapping("/owners/find")
    fun initFindForm(model: MutableMap<String, Any>): String {

under original OwnerController class