A collection of APIs that provide dynamic product support for DPX and sales funnels
npm install dpx-product-enginesh
git clone https://github.com/nib-group/dpx-product-engine.git
`
2. Navigate to the project directory:
`sh
cd dpx-product-engine
`
3. Install the dependencies (make sure you're on the correct npm versio):
`sh
nvm use
npm install
`
$3
To start the application in development mode, run the following command:
`sh
npm run dev
`
$3
To run the tests, use the following command:
`sh
npm test
`
$3
To lint the code, use the following command:
`sh
npm run lint
`
To automatically fix linting errors, use:
`sh
npm run lint:fix
`
$3
To build the project, use the following command:
`sh
npm run build
`
Urls
`
kaos: https://dpx-product-engine.kaos.nibit.com.au/
`
`
branch https://dpx-product-engine-phisl-xxx.kaos.nibit.com.au/
`
Usage
Provide detailed instructions on how to use the application, including examples and screenshots if necessary.
Retrieve endpoint Request Parameters
| Parameter | Type | Required | Default | Description |
|----------------|--------|----------|---------|--------------------------------------------------------------------------|
| variationID | string | No | None | Optional identifier for a specific variation. |
| asset | string | Yes | None | The asset identifier to search for, e.g. IWHIWeb. |
| effectiveDate| string | No | Now | The time value for when to execute the product rules. Defaults to now. |
| visaSubclass | string | No | None | Optional visa-related parameter. |
| scale | string | No | None | Optional scaling factor. |
| dateOfBirth` | string | No | None | Date of birth, if relevant to the search. |