ModelAction
Interface: ModelAction
Defined in: packages/core/src/models/types.ts:82
Define an Action on a model
It is basically a method designed to be called by the API or external systems
Properties
global?
optionalglobal?:boolean
Defined in: packages/core/src/models/types.ts:99
Define if the action is global or per object
The method that implement the action must be called
_${actionName}
handler?
optionalhandler?:string
Defined in: packages/core/src/models/types.ts:112
Name of the method implementing the action, when the action is exposed
under another name with @Action({ name })
method?
optionalmethod?:string
Defined in: packages/core/src/models/types.ts:107
Method of the action
methods?
optionalmethods?:string[]
Defined in: packages/core/src/models/types.ts:92
Method for the route
By default ["PUT"]
openapi?
optionalopenapi?:any
Defined in: packages/core/src/models/types.ts:103
Additional openapi info
rest?
optionalrest?:object
Defined in: packages/core/src/models/types.ts:86
REST
body?
optionalbody?:string
method?
optionalmethod?:string
path?
optionalpath?:string
route?
optionalroute?:string