Class: Route<R, Ps, E>
routing.Route
Type parameters
Name | Type |
---|---|
R | R |
Ps | extends RouteParameters |
E | unknown |
Table of contents
Constructors
Properties
- method
- path
- name
- tags
- summary
- description
- deprecated
- responses
- statusCode
- includeInSchema
- responseClass
- parameters
- handle
Methods
Constructors
constructor
• new Route<R
, Ps
, E
>(init
): Route
<R
, Ps
, E
>
Type parameters
Name | Type |
---|---|
R | R |
Ps | extends RouteParameters |
E | unknown |
Parameters
Name | Type |
---|---|
init | Object |
init.method | HTTPMethod |
init.path | string |
init.name? | string |
init.tags? | string [] |
init.summary? | string |
init.description? | string |
init.deprecated? | boolean |
init.responses? | Record <number , ResponseConfig > |
init.includeInSchema? | boolean |
init.statusCode? | number |
init.responseClass? | ResponseClass |
init.parameters | Ps |
init.handle | RouteHandler <R , Ps , E > |
Returns
Route
<R
, Ps
, E
>
Defined in
Properties
method
• method: HTTPMethod
Defined in
path
• path: string
Defined in
name
• Optional
name: string
Defined in
tags
• tags: string
[]
Defined in
summary
• summary: string
Defined in
description
• description: string
Defined in
deprecated
• deprecated: boolean
Defined in
responses
• responses: Record
<number
, ResponseConfig
>
Defined in
statusCode
• statusCode: number
Defined in
includeInSchema
• includeInSchema: boolean
Defined in
responseClass
• responseClass: ResponseClass
Defined in
parameters
• parameters: Ps
Defined in
handle
• handle: RouteHandler
<R
, Ps
, E
>
Defined in
Methods
openapi
▸ openapi(): RouteConfig
Returns
RouteConfig