OpenApiOptions

class OpenApiOptions(val title: String = DEFAULT_TITLE, val servers: List<String> = emptyList(), val datasets: Boolean = true, val manifestEndpoint: Boolean = true, val openApiEndpoint: Boolean = true, val errorStatuses: Map<String, Int> = emptyMap(), val securitySchemes: Map<String, OpenApiSecurityScheme> = emptyMap(), val requestFacts: Set<String> = emptySet(), val requestIdHeaders: List<String> = emptyList(), val filterCodes: List<String> = emptyList())

What the document says beyond the Manifest: the routes the host serves or not, and its error statuses.

  • title names a service the Manifest does not (me.ahoo.wow.manifest.Manifest.service, a fragment's).

  • servers are the base URLs of the document's servers; none by default, so a client reads the routes relative to where it fetched the document.

  • datasets documents the dataset routes (/wow/dataset), which a node serves when it has a dataset backend; manifestEndpoint GET /wow/manifest; openApiEndpoint GET /wow/openapi.

  • errorStatuses are the statuses the host configures for error codes (wow.http.errors.[<code>].status), which win over the Manifest's tables as they do at the edge.

  • securitySchemes (withSecuritySchemes) are how a caller presents its identity, which the host fills from its caller resolver: the parts of one identity, presented together.

  • What the host adds to the routes, which the Manifest does not say: the requestFacts (wow.http.request-facts) and the requestIdHeaders beside Wow-Request-Id (CoSec's CoSec-Request-Id), header parameters of every command; and the filterCodes a filter before the routes answers (CoSec's 429 wow.request.rate-limited and 503 wow.auth.unavailable), listed on every operation.

Fields may be added: pass the constructor's arguments by name.

Constructors

Link copied to clipboard
constructor(title: String = DEFAULT_TITLE, servers: List<String> = emptyList(), datasets: Boolean = true, manifestEndpoint: Boolean = true, openApiEndpoint: Boolean = true, errorStatuses: Map<String, Int> = emptyMap(), securitySchemes: Map<String, OpenApiSecurityScheme> = emptyMap(), requestFacts: Set<String> = emptySet(), requestIdHeaders: List<String> = emptyList(), filterCodes: List<String> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

How a caller presents its identity, by scheme name: the document's components.securitySchemes, and its global security, one requirement naming them all, since a caller presents them together (the development callers' Wow-* headers). None by default.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard