Skip to content

rspace-os/protocols-java-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ProtocolIO Java library

This is a library of Java classes representing the Protocols.io API version 3 data objects.

Versions 1.x require Java 11. Version 1.1 changed maven artifactId and groupId.

Usage

Define a maven dependency:

  <dependency>
    <groupId>com.github.rspace-os</groupId>
    <artifactId>protocols-java-client</artifactId>
    <version>1.1.0</version>
  </dependency>

From a JSON representation of a protocol:

  String json = getProtocolsIO_v3Json();// get this from API calls
  ObjectMapper mapper = new ObjectMapper();
  Protocol protocol = mapper.readValue(json, Protocol.class);

See TestP_io.java JUnit Test for additional usage examples.

Dependencies

  • Lombok - used for POJO classes
  • Jackson - used for marshalling/unmarshalling annotations
  • Apache Commons IO/Lang - utilities
  • JUnit 5

Building

Standard Maven commands will build, test and package this library as a jar file, e.g.

mvn clean package

If you want to use this library as a dependency in your own project, then consider using Jitpack to build and host an online Maven repo containing this library.

About

Java model classes for protocols.io API entities

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages