You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of the REDAXO Headless ecosystem is to offer a developer approach to integrating SPAs into REDAXO. The setup will usually consist out of the following three sub-systems:
Using the navigation endpoint you can get the information needed for a nav bar.
URL
Method
/?rex-api-call=headless_content
GET
URL Params
Name
Type
Required
Note
path
string
Yes
Path relative to root without leading slash. Therefore the root article is requested by leaving the path empty.
Example Response
{
"meta": {
"title": "Home / REDAXO",
"description": ""
},
"title": "Home",
"content": "<p>This is some content.</p>"
}
Deploy
The deploy endpoint is a part of the deploy plugin which has to be enabled separately on the addon system page.
The deployment function used by the headless deployment github action. For more info see: redaxo-headless-deploy
URL
Method
/?rex-api-call=headless_deploy
POST
POST Params
Name
Type
Required
Notes
token
string
Yes
Defined in the REDAXO backend in the deploy plugin.
file
file
Yes
ZIP file containing the built SPA code at the root.
Example Response
{
"msg": "Successfully updated content!"
}
About
Add API functions which allow working with a frontend framework