Files defining Cloud API LOB-specific endpoints
This topic only applies to PolicyCenter.
When you generate LOB-specific endpoints for an installed product, PolicyCenter creates a series of files to define the endpoints and their behavior. There are two types of files: codegen output files and LOB extension files.
Codegen output files
Codegen output files define the LOB-specific endpoints. They include
schema files, mapping files, updater files, swagger files, and Gosu resource files.
And, these files have <lob_prefix>_gen in their name.
Also, whenever codegen identifies that a schema definition name is not the same as
its entity name, codegen populates the
events_<lob_prefix>_gen-1.0.yaml with the entity view
mapping. At run-time, App Events uses this file to locate the correct schema
name.
For example, if you generate endpoints for a Workers' Compensation product whose
product code is "wc", then the codegen output files would
include:
policyperiod_wc_gen-1.0.schema.jsonpolicyperiod_wc_gen-1.0.mapping.jsonpolicyperiod_wc_gen-1.0.updater.json
LOB extension files
LOB extension files define extensions to the endpoints. They include
schema files, mapping files, updater files, swagger files, and Gosu resource files.
These files have <productCode>_ext in their name.
If these files do not exist (such as when you have never generated installed endpoints for the given product), then these files are created when you generate the endpoints. But, if these files already exist, the codegen process does not modify them.
For example, if you generate endpoints for a Workers' Compensation product whose
product code is "wc", then the LOB extension files would
include:
policyperiod_wc_ext-1.0.schema.jsonpolicyperiod_wc_ext-1.0.mapping.jsonpolicyperiod_wc_ext-1.0.updater.json
File locations
The codegen output files and LOB extension files
are placed in the following directories in the
modules\configuration directory:
config\integration\apis\eventsconfig\integration\apis\ext\job\v1config\integration\apis\ext\policy\v1config\integration\apis\ext\policyperiod\v1config\integration\mappings\ext\policyperiod\v1config\integration\schemas\ext\policyperiod\v1config\integration\updaters\ext\policyperiod\v1gsrc\gw\rest\ext\pc\policyperiod\<productCode>\v1
<productCode>_ext-1.0.yaml. It is
placed in the
modules\configuration\config\integration\apis\installedlobs
directory along with the codegen config files.