This project should help you integrate FACT-Finder into your own system, by demonstrating how to use the different functionalities via the JSON based REST API.
- Java 8
- As this project is using gradle, you need a plugin to import it into your IDE. IntelliJ does support this by default, when using Eclipse we recommend using the Buildship Plugin.
For generating the client the openapi-codegen needs to be executed inside the client directory.
Example command:
$ java -jar /path/to/openapi-generator-cli.jar generate -g java -c
swagger-java-configuration.json -i /path/to/factfinder-swagger.json --skip-validate-spec
This project consists of two modules, named client and runner.
The client module contains POJO-classes and all classes necessary to send requests to FACT-Finder via its JSON based REST API. The module was generated using openapi generator.
The second module, named runner, contains example classes using that client
classes. Each Runner*
-class is executable on it's own and demonstrates a
different FACT-Finder functionality.
Before you are able to run one of the Runner*
-classes, you need to adjust the
de.factfinder.runner.Settings
-class according to the path and credentials of
your FACT-Finder environment.