Forest header image

Symfony Finland
Random things on PHP, Symfony and web development

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:

Learn more:

Written by Jani Tarvainen on Sunday September 25, 2016
Permalink -

« eZ Platform Field Type gotcha: No type registered for... - A GraphQL enabled CaaS (Content as a Service) platform »