The REST API specialization is shipped as a DITA-OT plugin, which needs to be installed in DITA-OT:
The plugin has been tested against versin 2.0 and 2.1 of DITA-OT.
- Navigate to your DITA-OT installation directory (
/opt/DITA-OT
for example). - Navigate to the
plugins
directory. - Clone or unzip the REST-API plugin in this directory.
You should now have a
./DITA-OT/plugins/com.prismadoc.rest-api
directory.
- Navigate to the
DITA-OT
directory, and run ant -f integrator.xml
The plugin is now installed and ready to use.
- Within the DITA-OT directory, run: dita -f xhtml -i plugins/com.prismadoc.rest-api/samples/sample.dita
The REST API specialization provides templates that can be used by Oxygen to provide a REST-API topic type in the "New Document" wizard:
- Navigate to the Oxygen DITA-OT installation directory (
/opt/Oxygen/frameworks/dita/DITA-OT
for example). - Navigate to the
plugins
directory. - Clone or unzip the REST-API plugin in this directory.
You should now have a
./DITA-OT/plugins/com.prismadoc.rest-api
directory.
- Open the Oxygen XML editor, and click
Window > Show View > Transformation Scenarios
. - In the Transformation scenario tab, click the
Gear
icon and selectShow all
. - Find the
Run DITA OT Integrator
entry, and double-click it to run.
The plugin is now installed and ready to use.
- Click
File > New
. - Type
api
in the Filter text.
The dialog should display the DITA "REST API" topic type.
- Click the REST API template.
- Start editing.