Spring Boot REST API¶
Update
See here for an improved version, meaning production ready, of this project!
A basic example of a Spring Boot REST API is available in the JODConverter Samples repository; the spring-boot-rest module.
This is a sample application of a REST API that uses the spring boot integration module, jodconverter-spring-boot-starter, with the local module jodconverter-local-lo library of the JODConverter project, which means the jodconverter-local built with the LibreOffice dependencies.
The goal was to emulate a Collabora Online server that would support the customization of custom (known) load/store properties.
Note
The exposed REST API interface imitates the Collabora Online REST interface (/lool), you could think of this example as a Collabora Online server.
Running the project using Gradle¶
First, build the project:
gradlew :samples:spring-boot-rest:build
Then, run:
gradlew :samples:spring-boot-rest:bootRun
If you experience a connection issue on Windows, you may have to set a system property pointing to a templateProfileDir where OpenGL is disabled by default. Read this to know how to disable OpenGL. Then, run:
gradlew :samples:spring-boot-rest:bootRun -Dorg.jodconverter.local.manager.templateProfileDir=<path to your directory>
Once started, use your favorite browser and visit this page:
http://localhost:8080/
Happy conversions!!