This is a Java API client for communicating the Nuts Node, the reference implementation of the Nuts Specification. It is generated from the latest version of the OpenAPI specifications of the Nuts Node REST API.
Maven (look up the latest version from Maven central, TODO: add link):
<dependency>
<groupId>nl.reinkrul.nuts</groupId>
<artifactId>java-client</artifactId>
<version>latest</version>
</dependency>
The example below instantiates the API client for VDR and calls getDID
for subjectDID
:
var apiClient = new nl.reinkrul.nuts.client.ApiClient();
apiClient.setBasePath("http://localhost:1323");
var didApi = new nl.reinkrul.nuts.client.vdr.DidApi(apiClient);
var didDocument = didApi.getDID(subjectDID, null, null);
// do something with the resolved DID Document
Since each module in the Nuts Node has its own OpenAPI specification, there is a client API generated for each of them.
You can find in their own subpackage in nl.reinkrul.nuts
(e.g. nl.reinkrul.nuts.vdr
).
Run make
:
- Fetches the latest version of the OpenAPI specifications.
- Generates the API client.
- Builds it and installs it in the local Maven repository.