Backstage
Docs
Github
Preparing search index...
@backstage/backend-openapi-utils
index
internal
EndpointMapRequestMatcher
Interface EndpointMapRequestMatcher<Doc, T, Method>
Superset of the express router path matcher that enforces typed request and response bodies.
Type Parameters
Doc
extends
EndpointMap
T
Method
extends
HttpMethods
EndpointMapRequestMatcher
<
TPath
extends
string
,
TMethod
extends
"all"
|
"get"
|
"post"
|
"put"
|
"_delete"
,
>
(
path
:
TPath
,
...
handlers
:
EndpointMapRequestHandler
<
Doc
,
TemplateToDocEndpoint
<
Doc
,
TPath
>
,
TMethod
,
>
[]
,
)
:
T
Type Parameters
TPath
extends
string
TMethod
extends
"all"
|
"get"
|
"post"
|
"put"
|
"_delete"
Parameters
path
:
TPath
...
handlers
:
EndpointMapRequestHandler
<
Doc
,
TemplateToDocEndpoint
<
Doc
,
TPath
>
,
TMethod
>
[]
Returns
T
EndpointMapRequestMatcher
<
TPath
extends
string
,
TMethod
extends
"all"
|
"get"
|
"post"
|
"put"
|
"_delete"
,
>
(
path
:
TPath
,
...
handlers
:
EndpointMapRequestHandlerParams
<
Doc
,
TemplateToDocEndpoint
<
Doc
,
TPath
>
,
TMethod
,
>
[]
,
)
:
T
Type Parameters
TPath
extends
string
TMethod
extends
"all"
|
"get"
|
"post"
|
"put"
|
"_delete"
Parameters
path
:
TPath
...
handlers
:
EndpointMapRequestHandlerParams
<
Doc
,
TemplateToDocEndpoint
<
Doc
,
TPath
>
,
TMethod
>
[]
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.