in src/main/kotlin/circlet/cli/confluence/ConfluenceClient.kt [99:113]
suspend fun getDocumentById(id: Int): DocumentInfo {
return httpClient
.get(
buildUrl(
"/rest/api/content/$id",
mapOf("expand" to "body.export_view")
),
block = {
credentials?.let {
header(HttpHeaders.Authorization, it.renderHeader())
}
}
)
.body()
}