The Helix programming model for the Cortex API is a new, faster way of developing resources for the Cortex API.
Helix resources fundamentally work in the same way as legacy Cortex resources, with a few key differences designed to improve the development experience:
The concept of resource prototypes streamlines the development process Simply define the API using the API definition language, generate the prototype, and implement it
Resource operation implementation is simplified by the introduction of operation interfaces The only part you have to implement is the CRUD (Create Read Update Delete) operation itself, with all other wiring handled by the prototype’s generation process
One prototype class per resource operation allows for a clearer definition of a class’ responsibilities Code is easier to understand and more lightweight to implement
Hot deployment of bundles into the Cortex webapp allows for rapid prototype development and testing
To understand the basics of Helix development, see the following resources:
- Cortex Call Stack - Shows the differences between how Helix resources and legacy resources interact with the Commerce Engine call stack.
- Creating your First Helix Resource - Describes the end-to-end process of developing a Helix resource, as well as how to debug and address errors when developing.
- Working with Mixed Models - An overview of some issues you might encounter while working with Helix resources, and how to navigate them.
- Tutorials - Follow the tutorials to learn and practice working with Helix.
- Helix Pattern Catalog - This repository contains a series of self-contained Helix examples that illustrate some of the core resource design patterns.