An open API service indexing awesome lists of open source software.

https://github.com/phase2/cms_api


https://github.com/phase2/cms_api

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

The CMS API module provides a very simple JSON API into drupal. This was used to pull in parts of drupal into another site.

Return JSON format:

{
'status': TRUE/FALSE
'data': {} Data from endpoint
'css': '' CSS that is included in the html page @see drupal_get_css()
'js': '' JS that is included in the html page @see drupal_get_js()
'css_array': {} The CSS render array. @see drupal_add_css()
'js_array': {} The JS render array. @see drupal_add_js()
}

Current endpoints:

cms-api/block
- A list of blocks

cms-api/block//
- The Block html

cms-api/region
- A list of regions

cms-api/region/
- The HTML for the region

cms-api/section/
- The HTML for the

from the sites home page
- For example, getting the header region since lots of this is hard coded in page.tpl.php