in core/project/src/main/kotlin/io/klibs/core/project/ProjectController.kt [22:43]
fun getProjectDetailsByName(
@PathVariable
@Parameter(
description = "Login of the owner (same as the scm/github login)",
example = "Kotlin"
)
ownerLogin: String,
@PathVariable
@Parameter(
description = "Name of the project (same as the scm/github repo name)",
example = "kotlinx.coroutines"
)
projectName: String
): ResponseEntity<ProjectDetailsDTO> {
val projectDetails = projectService.getProjectDetailsByName(
ownerLogin = ownerLogin,
projectName = projectName
) ?: return ResponseEntity.notFound().build()
return ResponseEntity.ok(projectDetails.toDTO())
}