Skip to content
Permalink
Browse files
Patch client request methods and update client version
  • Loading branch information
Nasser Kaze committed Aug 17, 2021
1 parent 973dbd9 commit 1c3c8f426ec30e2817743f19cb2cb5b174b5db46
Showing 43 changed files with 536 additions and 180 deletions.
@@ -82,8 +82,14 @@ task buildJavaSdk(type: org.openapitools.generator.gradle.plugin.tasks.GenerateT
invokerPackage = 'org.apache.fineract.credit.scorecard'
modelPackage = 'org.apache.fineract.credit.scorecard.models'
configOptions = [
fullJavaUtil: 'true',
dateLibrary: 'java8',
hideGenerationTimestamp: 'true',

developerEmail: 'dev@fineract.apache.org',
developerName: 'Apache Fineract',
developerOrganization: 'Apache Software Foundation',
developerOrganizationUrl: 'https://apache.org'
]
generateModelTests = false
generateApiTests = false
@@ -113,7 +119,7 @@ task copyClients {
copy {
from 'build/generated'
into 'clients'
exclude '**/*.sbt', '**/*.bat', '**/*.yml', '**/*.sh', '**/api', '**/.openapi-generator', '**/.openapi-generator-ignore', '**/gradle', '**/gradlew'
exclude '**/*.sbt', '**/*.yml', '**/*.sh', '**/api', '**/.openapi-generator', '**/.openapi-generator-ignore'
// filter(ReplaceTokens, tokens: [version: '2.3.1'])
}

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

@@ -1,7 +1,7 @@
# credit-scorecard-java-client

Fineract Credit Scorecard
- API version: 1.0.0
- API version: 0.1.0-SNAPSHOT

An API module for credit risk assessment

@@ -39,7 +39,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>org.apache.fineract</groupId>
<artifactId>credit-scorecard-java-client</artifactId>
<version>1.0.0</version>
<version>0.1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
```
@@ -49,7 +49,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.apache.fineract:credit-scorecard-java-client:1.0.0"
compile "org.apache.fineract:credit-scorecard-java-client:0.1.0-SNAPSHOT"
```

### Others
@@ -62,7 +62,7 @@ mvn clean package

Then manually install the following JARs:

* `target/credit-scorecard-java-client-1.0.0.jar`
* `target/credit-scorecard-java-client-0.1.0-SNAPSHOT.jar`
* `target/lib/*.jar`

## Getting Started
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
apply plugin: 'java'

group = 'org.apache.fineract'
version = '1.0.0'
version = '0.1.0-SNAPSHOT'

buildscript {
repositories {
@@ -134,7 +134,7 @@ No authorization required

<a name="algorithmsList"></a>
# **algorithmsList**
> List&lt;Algorithm&gt; algorithmsList()
> java.util.List&lt;Algorithm&gt; algorithmsList()


@@ -154,7 +154,7 @@ public class Example {
AlgorithmsApi apiInstance = new AlgorithmsApi(defaultClient);
try {
List<Algorithm> result = apiInstance.algorithmsList();
java.util.List<Algorithm> result = apiInstance.algorithmsList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlgorithmsApi#algorithmsList");
@@ -172,7 +172,7 @@ This endpoint does not need any parameter.

### Return type

[**List&lt;Algorithm&gt;**](Algorithm.md)
[**java.util.List&lt;Algorithm&gt;**](Algorithm.md)

### Authorization

@@ -277,7 +277,7 @@ public class Example {
String version = "0.0.1"; // String | Algorithm version
String dataset = "german"; // String | The name of the dataset
String status = "production"; // String | The status of the algorithm
Map<String, Object> requestBody = null; // Map<String, Object> |
java.util.Map<String, Object> requestBody = null; // java.util.Map<String, Object> |
try {
PredictionResponse result = apiInstance.algorithmsPredict(classifier, version, dataset, status, requestBody);
System.out.println(result);
@@ -300,7 +300,7 @@ Name | Type | Description | Notes
**version** | **String**| Algorithm version | [default to 0.0.1]
**dataset** | **String**| The name of the dataset | [optional]
**status** | **String**| The status of the algorithm | [optional]
**requestBody** | [**Map&lt;String, Object&gt;**](Object.md)| | [optional]
**requestBody** | [**java.util.Map&lt;String, Object&gt;**](Object.md)| | [optional]

### Return type

@@ -10,7 +10,7 @@ Method | HTTP request | Description

<a name="datasetsList"></a>
# **datasetsList**
> List&lt;Dataset&gt; datasetsList()
> java.util.List&lt;Dataset&gt; datasetsList()


@@ -30,7 +30,7 @@ public class Example {
DatasetsApi apiInstance = new DatasetsApi(defaultClient);
try {
List<Dataset> result = apiInstance.datasetsList();
java.util.List<Dataset> result = apiInstance.datasetsList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatasetsApi#datasetsList");
@@ -48,7 +48,7 @@ This endpoint does not need any parameter.

### Return type

[**List&lt;Dataset&gt;**](Dataset.md)
[**java.util.List&lt;Dataset&gt;**](Dataset.md)

### Authorization

@@ -133,7 +133,7 @@ No authorization required

<a name="requestsList"></a>
# **requestsList**
> List&lt;PredictionRequest&gt; requestsList()
> java.util.List&lt;PredictionRequest&gt; requestsList()


@@ -153,7 +153,7 @@ public class Example {
RequestsApi apiInstance = new RequestsApi(defaultClient);
try {
List<PredictionRequest> result = apiInstance.requestsList();
java.util.List<PredictionRequest> result = apiInstance.requestsList();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RequestsApi#requestsList");
@@ -171,7 +171,7 @@ This endpoint does not need any parameter.

### Return type

[**List&lt;PredictionRequest&gt;**](PredictionRequest.md)
[**java.util.List&lt;PredictionRequest&gt;**](PredictionRequest.md)

### Authorization

Binary file not shown.
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 1c3c8f4

Please sign in to comment.