tsoa-next
Preparing search index...
@tsoa-next/cli
AbstractRouteGenerator
Class AbstractRouteGenerator<Config>
Abstract
Type Parameters
Config
extends
ExtendedRoutesConfig
Hierarchy (
View Summary
)
AbstractRouteGenerator
DefaultRouteGenerator
Index
Constructors
constructor
Properties
metadata
options
Methods
build
Context
build
Models
build
Parameter
Schema
build
Property
build
Property
Schema
Generate
Custom
Routes
get
Relative
Import
Path
path
Transformer
should
Write
File
Constructors
constructor
new
AbstractRouteGenerator
<
Config
extends
ExtendedRoutesConfig
>
(
metadata
:
Metadata
,
options
:
Config
,
)
:
AbstractRouteGenerator
<
Config
>
Type Parameters
Config
extends
ExtendedRoutesConfig
Parameters
metadata
:
Metadata
options
:
Config
Returns
AbstractRouteGenerator
<
Config
>
Properties
Protected
Readonly
metadata
metadata
:
Metadata
Protected
Readonly
options
options
:
Config
Methods
Protected
build
Context
buildContext
()
:
{
authenticationModule
:
string
|
undefined
;
basePath
:
string
;
canImportByAlias
:
boolean
;
controllers
:
{
actions
:
{
fullPath
:
string
;
method
:
string
;
name
:
string
;
parameters
:
{
[
name
:
string
]:
ParameterSchema
}
;
path
:
string
;
security
:
Security
[]
;
successStatus
:
string
|
number
;
uploadFile
:
boolean
;
uploadFileName
:
{
maxCount
:
number
|
undefined
;
multiple
:
boolean
;
name
:
string
;
}
[]
;
}
[]
;
modulePath
:
string
;
name
:
string
;
path
:
string
;
}
[]
;
environment
:
ProcessEnv
;
esm
:
boolean
|
undefined
;
iocModule
:
string
|
undefined
;
minimalSwaggerConfig
:
{
bodyCoercion
:
boolean
;
noImplicitAdditionalProperties
:
|
"ignore"
|
"throw-on-extras"
|
"silently-remove-extras"
;
}
;
models
:
Models
;
multerOpts
:
Config
[
"multerOpts"
]
;
useFileUploads
:
boolean
;
useSecurity
:
boolean
;
}
Returns
{
authenticationModule
:
string
|
undefined
;
basePath
:
string
;
canImportByAlias
:
boolean
;
controllers
:
{
actions
:
{
fullPath
:
string
;
method
:
string
;
name
:
string
;
parameters
:
{
[
name
:
string
]:
ParameterSchema
}
;
path
:
string
;
security
:
Security
[]
;
successStatus
:
string
|
number
;
uploadFile
:
boolean
;
uploadFileName
:
{
maxCount
:
number
|
undefined
;
multiple
:
boolean
;
name
:
string
;
}
[]
;
}
[]
;
modulePath
:
string
;
name
:
string
;
path
:
string
;
}
[]
;
environment
:
ProcessEnv
;
esm
:
boolean
|
undefined
;
iocModule
:
string
|
undefined
;
minimalSwaggerConfig
:
{
bodyCoercion
:
boolean
;
noImplicitAdditionalProperties
:
|
"ignore"
|
"throw-on-extras"
|
"silently-remove-extras"
;
}
;
models
:
Models
;
multerOpts
:
Config
[
"multerOpts"
]
;
useFileUploads
:
boolean
;
useSecurity
:
boolean
;
}
build
Models
buildModels
()
:
Models
Returns
Models
Protected
build
Parameter
Schema
buildParameterSchema
(
source
:
Parameter
)
:
ParameterSchema
Parameters
source
:
Parameter
Returns
ParameterSchema
Protected
build
Property
buildProperty
(
type
:
Type
)
:
PropertySchema
Parameters
type
:
Type
Returns
PropertySchema
Protected
build
Property
Schema
buildPropertySchema
(
source
:
Property
)
:
PropertySchema
Parameters
source
:
Property
Returns
PropertySchema
Abstract
Generate
Custom
Routes
GenerateCustomRoutes
()
:
Promise
<
void
>
This is the entrypoint for a generator to create a custom set of routes
Returns
Promise
<
void
>
Protected
get
Relative
Import
Path
getRelativeImportPath
(
fileLocation
:
string
)
:
string
Parameters
fileLocation
:
string
Returns
string
Protected
path
Transformer
pathTransformer
(
path
:
string
)
:
string
Parameters
path
:
string
Returns
string
Protected
should
Write
File
shouldWriteFile
(
fileName
:
string
,
content
:
string
)
:
Promise
<
boolean
>
Parameters
fileName
:
string
content
:
string
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
metadata
options
Methods
build
Context
build
Models
build
Parameter
Schema
build
Property
build
Property
Schema
Generate
Custom
Routes
get
Relative
Import
Path
path
Transformer
should
Write
File
tsoa-next
Loading...
This is the entrypoint for a generator to create a custom set of routes