Skip to main content

ApiRouter

Home > @backstage/backend-openapi-utils > ApiRouter

Typed Express router based on an OpenAPI 3.1 spec.

Signature:

export interface ApiRouter<Doc extends RequiredDoc> extends Router 

Extends: Router

Properties

PropertyModifiersTypeDescription
allDocRequestMatcher<Doc, this, 'all'>
deleteDocRequestMatcher<Doc, this, 'delete'>
getDocRequestMatcher<Doc, this, 'get'>
headDocRequestMatcher<Doc, this, 'head'>
optionsDocRequestMatcher<Doc, this, 'options'>
patchDocRequestMatcher<Doc, this, 'patch'>
postDocRequestMatcher<Doc, this, 'post'>
putDocRequestMatcher<Doc, this, 'put'>