OpenApiOptions

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.

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

Constructors

Link copied to clipboard
constructor()

The default options; a constructor of its own, as the JVM has it for a class whose arguments all default.

constructor(title: String = DEFAULT_TITLE, servers: List<String> = emptyList(), datasets: Boolean = true, manifestEndpoint: Boolean = true, openApiEndpoint: Boolean = true, errorStatuses: Map<String, Int> = emptyMap())

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

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