/
Headless / Accessing content as an API

Headless / Accessing content as an API

For versions 0.2.2 and above, any content route in Lynicon is automatically configured to return the content on any URL as a JSON object if you set up the appropriate Accept headers. The way this works is:

  • If the Request has an Accept header with any of '*/*', 'text/html' or 'application/xhtml+xml', an HTML page is returned
  • Otherwise a JSON content object is returned.

Related content

Mapping Urls to Content
Mapping Urls to Content
More like this
Using Modules and Extensions
Using Modules and Extensions
More like this
Architecture
More like this
Architecture
Architecture
More like this
Caching
More like this
Design Principles
Design Principles
More like this