fun getPackageVersions()

in core/package/src/main/kotlin/io/klibs/core/pckg/controller/PackageController.kt [85:104]


    fun getPackageVersions(
        @PathVariable("groupId")
        @Parameter(
            description = "Group ID of the Maven artifact",
            example = "org.jetbrains.kotlinx"
        )
        groupId: String,

        @PathVariable("artifactId")
        @Parameter(
            description = "Artifact ID of the Maven artifact",
            example = "kotlinx-coroutines-core"
        )
        artifactId: String
    ): List<PackageOverviewResponse> {
        return packageService.getPackages(
            groupId = groupId,
            artifactId = artifactId
        ).map { it.toDTO() }
    }