Skip to content

Commit

Permalink
[skyapi] refs #15 Added in readme hot to change host and added Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed Mar 19, 2019
1 parent 96d68db commit 704a3a1
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## LibJava-Skycoin 0.25.1 - 2019/03/19

### Added

- Add `skyapi`, a wrapper for Skycoin api in version 0.25.1

### Fixed

- Fix #15 - Java API wrapper for the Skycoin node API


38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,41 @@ The following `make` rules are available after `git checkout` of this repository
This wrapper is Auto generated by openapi-generator directly from `Skycoin Api` code for version v0.25.1.

For further details of usage of `Java wrapper for Skycoin Api` see [Autogenerated documentation](./lib/skyapi/README.md)

### Specific Node Address

For use a specific node of Skycoin, you just need to create a instance of `ApiClient` passing the node address:

```java

```java

import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

public static void main(String[] args) {

DefaultApi apiInstance = new DefaultApi();
// This line change node address
apiInstance.setBasePath("some node address");
try {
Object result = apiInstance.addressCount();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#addressCount");
e.printStackTrace();
}
}
}

```
```
Then in `restSharpClient` you can use all methods related to Api Client.

0 comments on commit 704a3a1

Please sign in to comment.