mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
build: Update Kompendium
This commit is contained in:
parent
ba936ad134
commit
7c20e0fe99
@ -1,5 +1,5 @@
|
||||
[versions]
|
||||
kompendium-core = "latest.release"
|
||||
kompendium-core = "3.14.4"
|
||||
kotlin = "2.0.0"
|
||||
logback = "1.4.14"
|
||||
exposed = "0.41.1"
|
||||
|
@ -16,40 +16,37 @@ import java.net.URI
|
||||
|
||||
internal fun Application.configureOpenAPI() {
|
||||
install(NotarizedApplication()) {
|
||||
spec = {
|
||||
OpenApiSpec(
|
||||
info = Info(
|
||||
title = "ReVanced API",
|
||||
version = applicationVersion,
|
||||
description = "API server for ReVanced.",
|
||||
contact = Contact(
|
||||
name = "ReVanced",
|
||||
url = URI("https://revanced.app"),
|
||||
email = "contact@revanced.app",
|
||||
),
|
||||
license = License(
|
||||
name = "AGPLv3",
|
||||
url = URI("https://github.com/ReVanced/revanced-api/blob/main/LICENSE"),
|
||||
),
|
||||
spec = OpenApiSpec(
|
||||
info = Info(
|
||||
title = "ReVanced API",
|
||||
version = applicationVersion,
|
||||
description = "API server for ReVanced.",
|
||||
contact = Contact(
|
||||
name = "ReVanced",
|
||||
url = URI("https://revanced.app"),
|
||||
email = "contact@revanced.app",
|
||||
),
|
||||
components = Components(
|
||||
securitySchemes = mutableMapOf(
|
||||
"bearer" to BearerAuth(),
|
||||
"basic" to BasicAuth(),
|
||||
),
|
||||
license = License(
|
||||
name = "AGPLv3",
|
||||
url = URI("https://github.com/ReVanced/revanced-api/blob/main/LICENSE"),
|
||||
),
|
||||
),
|
||||
components = Components(
|
||||
securitySchemes = mutableMapOf(
|
||||
"bearer" to BearerAuth(),
|
||||
"basic" to BasicAuth(),
|
||||
),
|
||||
),
|
||||
).apply {
|
||||
servers += Server(
|
||||
url = URI("https://api.revanced.app"),
|
||||
description = "ReVanced API server",
|
||||
)
|
||||
|
||||
).apply {
|
||||
servers += Server(
|
||||
url = URI("https://api.revanced.app"),
|
||||
description = "ReVanced API server",
|
||||
)
|
||||
|
||||
servers += Server(
|
||||
url = URI("http://localhost:8888"),
|
||||
description = "Local ReVanced API server",
|
||||
)
|
||||
}
|
||||
servers += Server(
|
||||
url = URI("http://localhost:8888"),
|
||||
description = "Local ReVanced API server",
|
||||
)
|
||||
}
|
||||
|
||||
schemaConfigurator = KotlinXSchemaConfigurator()
|
||||
|
Loading…
x
Reference in New Issue
Block a user