Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate java client #43

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions DataTier-APIs/Java-Client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# exclude jar for gradle wrapper
!gradle/wrapper/*.jar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# build files
**/target
target
.gradle
build
15 changes: 15 additions & 0 deletions DataTier-APIs/Java-Client/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pom.xml
.gitignore
.travis.yml
README.md
api/openapi.yaml
build.gradle
build.sbt
docs/*
git_push.sh
gradle.properties
gradle/wrapper/gradle-wrapper.jar
gradle/wrapper/gradle-wrapper.properties
gradlew
gradlew.bat
settings.gradle
39 changes: 39 additions & 0 deletions DataTier-APIs/Java-Client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiCallback.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiClient.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiException.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ApiResponse.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Configuration.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/GzipRequestInterceptor.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/JSON.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/Pair.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressRequestBody.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ProgressResponseBody.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerConfiguration.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/ServerVariable.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/StringUtil.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/api/DefaultApi.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/ApiKeyAuth.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/Authentication.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBasicAuth.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/auth/HttpBearerAuth.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecord.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AbaBankingRecordAllOf.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCode.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/AreaCodeAllOf.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecord.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUser.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/BaseAuditRecordWithUserAllOf.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/Company.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/CompanyAllOf.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DataTableInfoRecord.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/DatamodelRecord.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstName.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/FirstNameAllOf.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastName.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/LastNameAllOf.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/QueryResponseSharedFields.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCode.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/UpcCodeAllOf.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUS.java
src/gen/java/io/connectedhealth/idaas/datasynthesis/javaclient/model/ZipCodeUSAllOf.java
src/main/AndroidManifest.xml
1 change: 1 addition & 0 deletions DataTier-APIs/Java-Client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.4.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e8335d940150275cb37d1f1ba6748d6cc7e5571faafa8a60badfb4f466a71a24
172 changes: 172 additions & 0 deletions DataTier-APIs/Java-Client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
# java-client

Query API
- API version: 1.0
- Build date: 2022-05-08T18:44:37.872933300-05:00[America/Chicago]

A list of get API calls that allows for pulling data

For more information, please visit [https://github.com/Project-Herophilus/DataSynthesis/issues](https://github.com/Project-Herophilus/DataSynthesis/issues)

*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*


## Requirements

Building the API client library requires:
1. Java 1.8+
2. Maven (3.8.3+)/Gradle (7.2+)

## Installation

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

```shell
mvn clean install
```

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

```shell
mvn clean deploy
```

Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.

### Maven users

Add this dependency to your project's POM:

```xml
<dependency>
<groupId>io.connectedhealth.idaas</groupId>
<artifactId>java-client</artifactId>
<version>4.0.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
```

### Gradle users

Add this dependency to your project's build file:

```groovy
repositories {
mavenCentral() // Needed if the 'java-client' jar has been published to maven central.
mavenLocal() // Needed if the 'java-client' jar has been published to the local maven repo.
}

dependencies {
implementation "io.connectedhealth.idaas:java-client:4.0.0-SNAPSHOT"
}
```

### Others

At first generate the JAR by executing:

```shell
mvn clean package
```

Then manually install the following JARs:

* `target/java-client-4.0.0-SNAPSHOT.jar`
* `target/lib/*.jar`

## Getting Started

Please follow the [installation](#installation) instruction and execute the following Java code:

```java

// Import classes:
import io.connectedhealth.idaas.datasynthesis.openapi.ApiClient;
import io.connectedhealth.idaas.datasynthesis.openapi.ApiException;
import io.connectedhealth.idaas.datasynthesis.openapi.Configuration;
import io.connectedhealth.idaas.datasynthesis.openapi.models.*;
import io.connectedhealth.idaas.datasynthesis.openapi.api.DefaultApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:3001/api/querydata");

DefaultApi apiInstance = new DefaultApi(defaultClient);
try {
Object result = apiInstance.getAbaBankingInformation();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getAbaBankingInformation");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

```

## Documentation for API Endpoints

All URIs are relative to *http://localhost:3001/api/querydata*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**getAbaBankingInformation**](docs/DefaultApi.md#getAbaBankingInformation) | **GET** /dataexisting/ababanking | Retrieves abaBanking information
*DefaultApi* | [**getAbaBankingInformationWithStateCode**](docs/DefaultApi.md#getAbaBankingInformationWithStateCode) | **GET** /dataexisting/ababanking/{statecode} | Retrieves abaBanking information
*DefaultApi* | [**getAreaCodeWithStateCode**](docs/DefaultApi.md#getAreaCodeWithStateCode) | **GET** /dataexisting/areacode/{statecode} | Retrieves data about area codes
*DefaultApi* | [**getAreaCodes**](docs/DefaultApi.md#getAreaCodes) | **GET** /dataexisting/areacode | Retrieves data about area codes
*DefaultApi* | [**getCompanies**](docs/DefaultApi.md#getCompanies) | **GET** /dataexisting/companies | Retrieves data about companies
*DefaultApi* | [**getCompaniesByCompanyName**](docs/DefaultApi.md#getCompaniesByCompanyName) | **GET** /dataexisting/companies/{companyname} | Retrieves data about companies
*DefaultApi* | [**getDataDomain**](docs/DefaultApi.md#getDataDomain) | **GET** /datamodel/datadomain | Retrieves data domain information
*DefaultApi* | [**getDataModelDataTables**](docs/DefaultApi.md#getDataModelDataTables) | **GET** /datamodel/datatables | Retrieves data about data tables
*DefaultApi* | [**getFirstNameWithFirstNameAndGender**](docs/DefaultApi.md#getFirstNameWithFirstNameAndGender) | **GET** /dataexisting/namefirst/{firstnamelike}/{gender} | Retrieves data about firstnames
*DefaultApi* | [**getFirstNameWithFirstNameLike**](docs/DefaultApi.md#getFirstNameWithFirstNameLike) | **GET** /dataexisting/namefirst{likename} | Retrieves data about firstnames
*DefaultApi* | [**getFirstNames**](docs/DefaultApi.md#getFirstNames) | **GET** /dataexisting/namefirst | Retrieves data about firstnames
*DefaultApi* | [**getLastName**](docs/DefaultApi.md#getLastName) | **GET** /dataexisting/namelast | Retrieves data about lastnames
*DefaultApi* | [**getLastNameWithMatch**](docs/DefaultApi.md#getLastNameWithMatch) | **GET** /dataexisting/namelast/{lastnamematch} | Retrieves data about lastnames
*DefaultApi* | [**getUPCCodes**](docs/DefaultApi.md#getUPCCodes) | **GET** /dataexisting/upccodes | Retrieves data about upc codes
*DefaultApi* | [**getUPCCodesWithProductNameMatch**](docs/DefaultApi.md#getUPCCodesWithProductNameMatch) | **GET** /dataexisting/upccodes/{productnamematch} | Retrieves data about upc codes
*DefaultApi* | [**getZipCodesUS**](docs/DefaultApi.md#getZipCodesUS) | **GET** /dataexisting/zipcodeus | Retrieves data about zipCodes in US
*DefaultApi* | [**getZipCodesUSWithStateCode**](docs/DefaultApi.md#getZipCodesUSWithStateCode) | **GET** /dataexisting/zipcodeus/{statecode} | Retrieves data about zipCodes in US with State Code


## Documentation for Models

- [AbaBankingRecord](docs/AbaBankingRecord.md)
- [AbaBankingRecordAllOf](docs/AbaBankingRecordAllOf.md)
- [AreaCode](docs/AreaCode.md)
- [AreaCodeAllOf](docs/AreaCodeAllOf.md)
- [BaseAuditRecord](docs/BaseAuditRecord.md)
- [BaseAuditRecordWithUser](docs/BaseAuditRecordWithUser.md)
- [BaseAuditRecordWithUserAllOf](docs/BaseAuditRecordWithUserAllOf.md)
- [Company](docs/Company.md)
- [CompanyAllOf](docs/CompanyAllOf.md)
- [DataTableInfoRecord](docs/DataTableInfoRecord.md)
- [DatamodelRecord](docs/DatamodelRecord.md)
- [FirstName](docs/FirstName.md)
- [FirstNameAllOf](docs/FirstNameAllOf.md)
- [LastName](docs/LastName.md)
- [LastNameAllOf](docs/LastNameAllOf.md)
- [QueryResponseSharedFields](docs/QueryResponseSharedFields.md)
- [UpcCode](docs/UpcCode.md)
- [UpcCodeAllOf](docs/UpcCodeAllOf.md)
- [ZipCodeUS](docs/ZipCodeUS.md)
- [ZipCodeUSAllOf](docs/ZipCodeUSAllOf.md)


## Documentation for Authorization

All endpoints do not require authorization.
Authentication schemes defined for the API:

## Recommendation

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

## Author



Loading