Laravel Headless REST JSON API CMS
Let's say you want a website and a mobile app, or a web app. You need a RESTful JSON API CMS which can output JSON data for you.
That is a "Laravel Headless CMS" stands for, maybe a REST API is what you prefer. Or you just need a simple JSON data API from a page.
The Amila Laravel CMS can do that for you as well, let's become a Headless Laravel CMS in 10 seconds:
- Step One: Set system.allow_json_response to Yes on the settings page
- Done
How to use the API to get JSON data?
- Send a parameter response_type=json to the page URL. eg. /cms-about-us.html?response_type=json
- Done
What JSON data you will receive from the API? You will receive below JSON object data:
- menus
- page
- file_data
Here is a JSON response data example from a page: