vertx / io.vertx.kotlin.ext.web.api.contract.openapi3 / OpenAPI3RouterFactory / createAwait

createAwait

suspend fun createAwait(vertx: Vertx, url: String): OpenAPI3RouterFactory

Create a new OpenAPI3RouterFactory

Parameters

vertx -

url - location of your spec. It can be an absolute path, a local path or remote url (with HTTP protocol)

handler - When specification is loaded, this handler will be called with AsyncResult

suspend fun createAwait(vertx: Vertx, url: String, auth: List<JsonObject>): OpenAPI3RouterFactory

Create a new OpenAPI3RouterFactory

Parameters

vertx -

url - location of your spec. It can be an absolute path, a local path or remote url (with HTTP protocol)

auth - list of authorization values needed to access the remote url. Each item should be json representation of an

handler - When specification is loaded, this handler will be called with AsyncResult