Package-level declarations

Contains the code related to the Macrocosm HTTP API implementation

Types

Link copied to clipboard

Type of permission for an API Key

Link copied to clipboard

Type of api state

Link copied to clipboard
Link copied to clipboard
data class InlinedKeyData(val format: APIState, val createdAt: Instant, val permissions: List<APIPermission>, val owner: UUID)

Represents byte-inlined data (previously) stored in the key as base64

Link copied to clipboard
data class KeyData(val key: String, val data: InlinedKeyData)

Macrocosm API Access Key data

Link copied to clipboard
object KeyManager

A global key manage for operations with API Keys

Functions

Link copied to clipboard
fun Application.module()

The main configuration of the Macrocosm API, to find more detailed endpoint information view the swagger spec

Link copied to clipboard

Builds up the embedded macrocosm Rest API server using the Netty ktor backend

Link copied to clipboard
suspend fun spinApi(): Deferred<Unit>

Spins up the macrocosm Rest API, basically wrapping serverSpin in coroutine scope

Properties

Link copied to clipboard

Represents current API state