Use the eZ JavaScript Client (CAPI) for a headless CMS implementation
eZ Platform ships with a comprehensive REST API. The API has been around for quite a few years and is one of the most robust ones out there. In eZ Platform the UI itself largely utilises the REST API, but it does not do this directly - rather it uses an abstraction layer for this.
This abstraction layer is known as the CAPI and it adds a layer of abstraction when working with the eZ Platform REST API. Instead of writing raw HTTP requests in your application, you will rather use the JavaScript Client API to make queries as you would with the Public PHP API from within Symfony Applications.
Below in a view you can find an example video displaying how the eZ Platform JavaScript CAPI can work together with the React.js view library:
The source code for the application displayed above can be found on GitHub: https://github.com/janit/ez-react-todo
Learn more:
- Using the JavaScript REST API Client
- Using eZ Platform as a Headless CMS
- Content as a Service (CaaS): Decoupled and Headless CMS 101
- Decoupling a CMS: Choosing between JavaScript Angular and React
- Five features to consider when selecting a Front End Architecture for your Decoupled CMS