Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Introduction

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.

Installation

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>

Usage

The example below instantiates the API client for VDR and calls getDID for subjectDID:

varapiClient = newnl.reinkrul.nuts.client.ApiClient();
apiClient.setBasePath("http://localhost:1323");
vardidApi = newnl.reinkrul.nuts.client.vdr.DidApi(apiClient);
vardidDocument = 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).

Development

Run make:

  1. Fetches the latest version of the OpenAPI specifications.
  2. Generates the API client.
  3. Builds it and installs it in the local Maven repository.

About

Java client for Nuts Node APIs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages