Skip to content

Syed-Subtain/sdks-java-java-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with apimatic calculator

Introduction

Simple calculator API hosted on APIMATIC

Install the Package

Install the SDK by adding the following dependency in your project's pom.xml file:

<dependency>
  <groupId>io.sdks</groupId>
  <artifactId>sdks-java-sdk</artifactId>
  <version>8.8.14</version>
</dependency>

You can also view the package at: https://central.sonatype.com/artifact/io.sdks/sdks-java-sdk/8.8.14

Test the SDK

The generated code and the server can be tested using automatically generated test cases. JUnit is used as the testing framework and test runner.

In Eclipse, for running the tests do the following:

  1. Select the project ApimaticCalculatorLib from the package explorer.
  2. Select Run -> Run as -> JUnit Test or use Alt + Shift + X followed by T to run the Tests.

Initialize the API Client

Note: Documentation for the client can be found here.

The following parameters are configurable for the API Client:

Parameter Type Description
environment Environment The API environment.
Default: Environment.PRODUCTION
httpClientConfig Consumer<HttpClientConfiguration.Builder> Set up Http Client Configuration instance.

The API client can be initialized as follows:

ApimaticCalculatorClient client = new ApimaticCalculatorClient.Builder()
    .httpClientConfig(configBuilder -> configBuilder
            .timeout(0))
    .environment(Environment.PRODUCTION)
    .build();

List of APIs

Classes Documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages