Backstage
Docs
Github
Preparing search index...
@backstage/backend-openapi-utils
index
internal
DocRequestMatcher
Interface DocRequestMatcher<Doc, T, Method>
Superset of the express router path matcher that enforces typed request and response bodies.
Type Parameters
Doc
extends
RequiredDoc
T
Method
extends
"all"
|
"get"
|
"post"
|
"put"
|
"delete"
|
"patch"
|
"options"
|
"head"
DocRequestMatcher
<
Path
extends
string
>
(
path
:
Path
,
...
handlers
:
DocRequestHandler
<
Doc
,
TemplateToDocPath
<
Doc
,
Path
>
,
Method
>
[]
,
)
:
T
Type Parameters
Path
extends
string
Parameters
path
:
Path
...
handlers
:
DocRequestHandler
<
Doc
,
TemplateToDocPath
<
Doc
,
Path
>
,
Method
>
[]
Returns
T
DocRequestMatcher
<
Path
extends
string
>
(
path
:
Path
,
...
handlers
:
DocRequestHandlerParams
<
Doc
,
TemplateToDocPath
<
Doc
,
Path
>
,
Method
,
>
[]
,
)
:
T
Type Parameters
Path
extends
string
Parameters
path
:
Path
...
handlers
:
DocRequestHandlerParams
<
Doc
,
TemplateToDocPath
<
Doc
,
Path
>
,
Method
>
[]
Returns
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Docs
Github
Backstage
Loading...
Superset of the express router path matcher that enforces typed request and response bodies.