Quarkus APIstax
Quarkus APIstax is a complete Java client implementation for the APIstax platform.
Usage
Add the following dependency to your build file:
Maven pom.xml
<dependency>
<groupId>io.quarkiverse.apistax</groupId>
<artifactId>quarkus-apistax</artifactId>
<version>4.0.0</version>
</dependency>
Gradle build.gradle
implementation("io.quarkiverse.apistax:quarkus-apistax:4.0.0")
Get your APIstax API key here and add it to your application.properties file:
quarkus.apistax.api-key=API-KEY
Inject an APIstaxClient
and start using it.
@ApplicationScoped
public class VatService {
@Inject
APIstaxClient client;
public boolean isValid(String vatId) {
VatVerificationResult result = client.verifyVatId(vatId);
return result.getValid() == true;
}
}
The further information and documentation about the APIs can be found on APIstax documentation page.
Extension Configuration Reference
Configuration property fixed at build time - All other configuration properties are overridable at runtime
Type |
Default |
|
---|---|---|
The APIstax API key. Get one via https://apistax.io Environment variable: |
string |
required |
Enables the mock mode. When enabled, requests are not send. Instead, fake data is returned. Environment variable: |
boolean |
|