API for The Electric Book template

This page describes the read-only API for The Electric Book template.

There are currently these endpoints:

These are not sophisticated API endpoints! On the webserver, they are just flat index.json files.

Refreshing API content

The metadata is refreshed with every site build. The content must be manually regenerated when a human editor runs the index command to refresh the web-search index.

API definition

You’ll find a simple RAML definition for the API in /electric-book/api/definition/definition.raml. It refers to these example files:

To read the definition in a nice interface, you can download the definition and the example files and open them in a RAML editor.