This is the repository for OpenMRS REST API documentation.
The live documentation site can be viewed at rest.openmrs.org.
OpenMRS documentation is built using Slate.
All documentation can be found in the source/includes/
directory and uses
Markdown text format.
Contributions are welcome!
Fork this repository in Github and submit the changes via pull requests. If you browse to the markdown files in this repository and edit them, GitHub will guide you through forking and making a pull request with your suggested changes.
Use Git to clone the repository and use Docker to build and serve it (requires pre-installed git and docker).
- Clone the openmrs-contrib-rest-api-docs repository:
git clone https://github.com/openmrs/openmrs-contrib-rest-api-docs.git
- Start the server
docker run --rm --name slate \
-v "$(pwd)/build:/srv/slate/build" \
-v "$(pwd)/source/index.html.md:/srv/slate/source/index.html.md" \
-v "$(pwd)/source/includes:/srv/slate/source/includes" \
-v "$(pwd)/source/images/logo.png:/srv/slate/source/images/logo.png" \
-p 4567:4567 slatedocs/slate serve
Browse to http://localhost:4567/ and you should see the docs!
-
Make sure you add the document inside under the
source/includes/
folder inside the relevant subfolder. -
Make sure to follow conventions used in existing markdown files for consistency.
-
New files need to be added to the list of inclusions in
source/includes/info.md
.