REST APIs Specifications. See working baseline of current openEHR specifications.
Specifications are written in API Blueprint format. Latest version is rendered as HTML pages at https://openehr.github.io/specifications-ITS-REST.
The HTML pages are building using aglio in a Docker container.
-
Build the
docker
image using:
$ docker build -t rest-api-doc .
-
Build the whole documentation running:
$ docker run -v "$(pwd):/project" -t rest-api-doc
-
Or build a single HTML page (e.g. the
ehr.html
), supplying all necessary parameters toaglio
:
$ docker run --rm -v "$(pwd):/project" rest-api-doc aglio \ --theme-template /project/src/templates/openehr.jade \ --theme-full-width \ --theme-variables /project/src/styles/variables-default.less \ --theme-style /project/src/styles/layout-default.less \ --theme-style /project/src/styles/layout-openEHR.less \ -i /project/src/ehr.apib \ -o /project/docs/ehr.html
-
(See more usage info on https://github.com/danielgtaylor/aglio#executable)
-
View the rendered docs in the
docs/
folder.