Skip to content

factompro/factom-java

Repository files navigation

swagger-java-client

Factom PRO API

  • API version: 1.5.0
    • Build date: 2021-07-30T15:28:24.262574+02:00[Europe/Madrid]

Factom PRO is a cloud blockchain gateway for securing your business data. Store data on the Bitcoin and Ethereum blockchains at a low fixed price of $0.01 per write. No cryptocurrency. No nodes.

For more information, please visit https://factom.pro

Automatically generated by the Swagger Codegen

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>io.swagger</groupId>
  <artifactId>swagger-java-client</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-java-client:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;

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

public class ApiApiExample {

    public static void main(String[] args) {
        
        ApiApi apiInstance = new ApiApi();
        try {
            InlineResponse200 result = apiInstance.getAPIInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApiApi#getAPIInfo");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.factom.pro/v1

Class Method HTTP request Description
ApiApi getAPIInfo GET / Get API info
ChainsApi createChain POST /chains Create chain
ChainsApi getChain GET /chains/{chainId} Get chain
ChainsApi getChainEntries GET /chains/{chainId}/entries Get chain entries
ChainsApi getChainFirstEntry GET /chains/{chainId}/entries/first Get first entry of the chain
ChainsApi getChainLastEntry GET /chains/{chainId}/entries/last Get last entry of the chain
ChainsApi getUserChains GET /chains Get user's chains
ChainsApi searchChainEntries POST /chains/{chainId}/entries/search Search chain entries
ChainsApi searchUserChains POST /chains/search Search user's chains
EntriesApi createEntry POST /entries Create entry
EntriesApi getEntry GET /entries/{entryHash} Get entry
UserApi getUser GET /user Get user info

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

Bearer Authorization

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

[email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages