RESTOperationsTransportParameters
Class: RESTOperationsTransportParameters
Defined in: packages/core/src/rest/restoperationstransport.service.ts:65
Parameters for RESTOperationsTransport
Extends
Constructors
Constructor
new RESTOperationsTransportParameters():
RESTOperationsTransportParameters
Returns
RESTOperationsTransportParameters
Inherited from
OperationsTransportParameters.constructor
Properties
exposeOpenAPI?
optionalexposeOpenAPI?:boolean
Defined in: packages/core/src/rest/restoperationstransport.service.ts:71
Expose the OpenAPI
Default
true if debug false otherwise
nameTransformer?
optionalnameTransformer?:TransformCaseType
Defined in: packages/core/src/rest/restoperationstransport.service.ts:92
Transform the name of the model to be used in the URL
See
https://blog.boot.dev/clean-code/casings-in-coding/
Default
camelCase
operations?
optionaloperations?:string[]
Defined in: packages/core/src/services/operationstransport.ts:16
List of operations to include/exclude Supports wildcards and negation: ["*", "!User.Delete"]
Default
["*"]
Inherited from
OperationsTransportParameters.operations
queryMethod?
optionalqueryMethod?:"GET"|"PUT"
Defined in: packages/core/src/rest/restoperationstransport.service.ts:98
Method used for query objects
Default
"PUT"
swaggerVersion
swaggerVersion:
string="5.31.0"
Defined in: packages/core/src/rest/restoperationstransport.service.ts:81
Swagger version to use
https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui.css https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui-bundle.js https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.19.5/swagger-ui-standalone-preset.js
TODO Add renovatebot regex
type
type:
string
Defined in: packages/core/src/services/serviceparameters.ts:10
Type of the service
Inherited from
OperationsTransportParameters.type
url
url:
string="/"
Defined in: packages/core/src/rest/restoperationstransport.service.ts:85
Base URL for the REST API
Methods
isIncluded()
isIncluded(
operationId):boolean
Defined in: packages/core/src/services/operationstransport.ts:63
Check if an operation is included by this transport
Parameters
operationId
string
the operation identifier
Returns
boolean
true if the operation is included
Inherited from
OperationsTransportParameters.isIncluded
load()
load(
params?):this
Defined in: packages/core/src/rest/restoperationstransport.service.ts:105
Load parameters with defaults
Parameters
params?
any = {}
the service parameters
Returns
this
this for chaining
Overrides
OperationsTransportParameters.load
update()
update(
params?,delta):this
Defined in: packages/core/src/services/serviceparameters.ts:35
Update parameters and call watchers if a parameter was changed
Parameters
params?
any = {}
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
OperationsTransportParameters.update
with()
with(
callback):this
Defined in: packages/core/src/services/serviceparameters.ts:65
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining