Skip to main content
Version: Next

@backstage/backend-openapi-utils

Home > @backstage/backend-openapi-utils

Common functionalities for the openapi-router plugin.

Functions

Function

Description

createValidatedOpenApiRouter(spec, options)

Create a new OpenAPI router with some default middleware.

createValidatedOpenApiRouterFromGeneratedEndpointMap(spec, options)

Create a new OpenAPI router with some default middleware.

getOpenApiSpecRoute(baseUrl)

Given a base url for a plugin, find the given OpenAPI spec for that plugin.

Interfaces

Interface

Description

ApiRouter

Typed Express router based on an OpenAPI 3.1 spec.

TypedRouter

Namespaces

Namespace

Description

internal

Type Aliases

Type Alias

Description

CookieParameters

HeaderParameters

PathParameters

PathTemplate

Validate a string against OpenAPI path template, https://spec.openapis.org/oas/v3.1.0#path-templating-matching.

QueryParameters

Request_2

Response_2