Event Name

CreateEntityControllerBase

Event Parameters

template
namedTypes.File

A template file that is used to generate the service. This is the default template that is used for this event: controller.base.template.ts. You can manipulate the template or replace it completely with a new template in your plugin.

entity
Entity

The entity which we are generating in the service.

entityName
string

The name of the entity for which we are generating the controller.

entityType
string

The type of the entity for which we are generating the controller.

entityServiceModule
string

To be completed.

templateMapping
{ [key: string]: any }

An object with values that are available in the interpolation process of the template. The default object with the available parameters can be found here. You can manipulate the object by adding new values, or replacing existing values that will be used in the template when creating the service file.

controllerBaseId
namedTypes.Identifier

The Identifier of the base service that is used as the class name. e.g. CustomerControllerBase.

serviceId
namedTypes.Identifier

The Identifier of the service that is used as the class name. e.g. CustomerService.