This module was written as a tech assessment task while applying for Drupal developer position at Axelerant.
This module gives your site simple API key verification mechanism and provides endpoint to output pages in a JSON format.
Download and enable as any standard Drupal module.
After enabling:
- Visit
/admin/config/system/site-information
; - Fill Site API Key field with your key Update Configuration.
- Make sure you have at least 1 node with content type
page
added. - Visit
/page_json/{YOUR_API_KEY}/{nid}
to see your page in JSON format.