Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src banner Jan 12, 2017
README.md Update README.md Jan 18, 2017
build.gradle disabled signing jar Dec 22, 2015
gradle.properties initial project check-in Dec 18, 2015

README.md

DCHQ-Java-SDK

DCHQ-Java-SDK simplifies using DCHQ REST API's. Providers high-level java abstraction for REST API's.

OpenSource and Community-Led

The SDK is open-source and community driven effort. If you want to contribute please reach out to us founders@dchq.io

You can interact with live REST API here:

https://dchq.readme.io/

build SDK (requires JDK8+, Gradle)

gradle build

build without test

gradle build -x test

test

gradle test

sdk maven endpoint

maven dependency

<dependency>
    <groupId>io.dchq</groupId>
    <artifactId>DCHQ-SDK</artifactId>
    <version>3.0-SNAPSHOT</version>
</dependency>

gradle

You'll add sonatype snapshot repos to pull sdk.

repositories {
    maven { url "http://repo.spring.io/libs-release" }
    maven { url "https://oss.sonatype.org/" }
    maven { url "https://oss.sonatype.org/content/groups/public" }
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    mavenLocal()
    mavenCentral()
}

Gradle dependency

compile("io.dchq:DCHQ-SDK:3.0-SNAPSHOT")

Example Code

BlueprintService blueprintService = ServiceFactory.buildBlueprintService(rootUrl, username, password);
ResponseEntity<List<Blueprint>> responseEntity = blueprintService.get();
for (Blueprint bl : responseEntity.getResults()) {
    logger.info("Blueprint type [{}] name [{}] author [{}]", bl.getBlueprintType(), bl.getName(), bl.getCreatedBy());
}

Code examples and JUnit and IT tests