Most files in the project are autogenerated by openapi-generator for java.
- template - folder contains redefined templates of
openapi-generator. For generating original templates, you can run this command:java -jar ./bin/generator.jar author template -g java --library jersey2 - docs - generated documentation for models and API Client.
- src - API Client code is generated automatically.
You need openapi-generator to run code generation. There are many ways described in the readme.
In the project we use local jar file bin/generator.jar.
You can just run sh ./scripts/generate.sh script and it will do all the work.
To download fresh OpenAPI schema run sh ./scripts/sync.sh
Use the ./src/examples/java/com/fingerprint/example/FunctionalTests.java file to make API requests using the local version of the SDK.
- Make sure you have Java Development Kit v17 installed (v20 does not currently work).
- Create an
.envfile in the root folder according to .env.example with your API key and test variables. - Finally, run
./gradlew runFunctionalTests.
Project configuration is described in config.yaml file. To read about available parameters run the command below:
java -jar ./bin/generator.jar config-help -l javaWe use changesets for handling release notes. If there are relevant changes, please add them to changeset via pnpm exec changeset. You need to run pnpm install before doing so.