All URIs are relative to http://127.0.0.1:8000
Method | HTTP request | Description |
---|---|---|
algorithmsCreate | POST /api/v1/algorithms | |
algorithmsDestroy | DELETE /api/v1/algorithms/{id} | |
algorithmsList | GET /api/v1/algorithms | |
algorithmsPartialUpdate | PATCH /api/v1/algorithms/{id} | |
algorithmsPredict | POST /api/v1/algorithms/predict | |
algorithmsRetrieve | GET /api/v1/algorithms/{id} | |
algorithmsUpdate | PUT /api/v1/algorithms/{id} |
Algorithm algorithmsCreate(algorithm)
// Import classes: import org.apache.fineract.credit.scorecard.ApiClient; import org.apache.fineract.credit.scorecard.ApiException; import org.apache.fineract.credit.scorecard.Configuration; import org.apache.fineract.credit.scorecard.models.*; import org.apache.fineract.credit.scorecard.services.AlgorithmsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://127.0.0.1:8000"); AlgorithmsApi apiInstance = new AlgorithmsApi(defaultClient); Algorithm algorithm = new Algorithm(); // Algorithm | try { Algorithm result = apiInstance.algorithmsCreate(algorithm); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AlgorithmsApi#algorithmsCreate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }
Name | Type | Description | Notes |
---|---|---|---|
algorithm | Algorithm |
No authorization required
Status code | Description | Response headers |
---|---|---|
201 | - |
algorithmsDestroy(id)
// Import classes: import org.apache.fineract.credit.scorecard.ApiClient; import org.apache.fineract.credit.scorecard.ApiException; import org.apache.fineract.credit.scorecard.Configuration; import org.apache.fineract.credit.scorecard.models.*; import org.apache.fineract.credit.scorecard.services.AlgorithmsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://127.0.0.1:8000"); AlgorithmsApi apiInstance = new AlgorithmsApi(defaultClient); Integer id = 56; // Integer | A unique integer value identifying this algorithm. try { apiInstance.algorithmsDestroy(id); } catch (ApiException e) { System.err.println("Exception when calling AlgorithmsApi#algorithmsDestroy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this algorithm. |
null (empty response body)
No authorization required
Status code | Description | Response headers |
---|---|---|
204 | No response body | - |
java.util.List<Algorithm> algorithmsList()
// Import classes: import org.apache.fineract.credit.scorecard.ApiClient; import org.apache.fineract.credit.scorecard.ApiException; import org.apache.fineract.credit.scorecard.Configuration; import org.apache.fineract.credit.scorecard.models.*; import org.apache.fineract.credit.scorecard.services.AlgorithmsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://127.0.0.1:8000"); AlgorithmsApi apiInstance = new AlgorithmsApi(defaultClient); try { java.util.List<Algorithm> result = apiInstance.algorithmsList(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AlgorithmsApi#algorithmsList"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }
This endpoint does not need any parameter.
No authorization required
Status code | Description | Response headers |
---|---|---|
200 | - |
Algorithm algorithmsPartialUpdate(id, algorithm)
// Import classes: import org.apache.fineract.credit.scorecard.ApiClient; import org.apache.fineract.credit.scorecard.ApiException; import org.apache.fineract.credit.scorecard.Configuration; import org.apache.fineract.credit.scorecard.models.*; import org.apache.fineract.credit.scorecard.services.AlgorithmsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://127.0.0.1:8000"); AlgorithmsApi apiInstance = new AlgorithmsApi(defaultClient); Integer id = 56; // Integer | A unique integer value identifying this algorithm. Algorithm algorithm = new Algorithm(); // Algorithm | try { Algorithm result = apiInstance.algorithmsPartialUpdate(id, algorithm); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AlgorithmsApi#algorithmsPartialUpdate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this algorithm. | |
algorithm | Algorithm |
No authorization required
Status code | Description | Response headers |
---|---|---|
200 | - |
PredictionResponse algorithmsPredict(classifier, version, dataset, status, requestBody)
Predict credit risk for a loan
// Import classes: import org.apache.fineract.credit.scorecard.ApiClient; import org.apache.fineract.credit.scorecard.ApiException; import org.apache.fineract.credit.scorecard.Configuration; import org.apache.fineract.credit.scorecard.models.*; import org.apache.fineract.credit.scorecard.services.AlgorithmsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://127.0.0.1:8000"); AlgorithmsApi apiInstance = new AlgorithmsApi(defaultClient); String classifier = "RandomForestClassifier"; // String | The algorithm/classifier to use 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 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); } catch (ApiException e) { System.err.println("Exception when calling AlgorithmsApi#algorithmsPredict"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }
Name | Type | Description | Notes |
---|---|---|---|
classifier | String | The algorithm/classifier to use | |
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 | java.util.Map<String, Object> | [optional] |
No authorization required
Status code | Description | Response headers |
---|---|---|
200 | - |
Algorithm algorithmsRetrieve(id)
// Import classes: import org.apache.fineract.credit.scorecard.ApiClient; import org.apache.fineract.credit.scorecard.ApiException; import org.apache.fineract.credit.scorecard.Configuration; import org.apache.fineract.credit.scorecard.models.*; import org.apache.fineract.credit.scorecard.services.AlgorithmsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://127.0.0.1:8000"); AlgorithmsApi apiInstance = new AlgorithmsApi(defaultClient); Integer id = 56; // Integer | A unique integer value identifying this algorithm. try { Algorithm result = apiInstance.algorithmsRetrieve(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AlgorithmsApi#algorithmsRetrieve"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this algorithm. |
No authorization required
Status code | Description | Response headers |
---|---|---|
200 | - |
Algorithm algorithmsUpdate(id, algorithm)
// Import classes: import org.apache.fineract.credit.scorecard.ApiClient; import org.apache.fineract.credit.scorecard.ApiException; import org.apache.fineract.credit.scorecard.Configuration; import org.apache.fineract.credit.scorecard.models.*; import org.apache.fineract.credit.scorecard.services.AlgorithmsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("http://127.0.0.1:8000"); AlgorithmsApi apiInstance = new AlgorithmsApi(defaultClient); Integer id = 56; // Integer | A unique integer value identifying this algorithm. Algorithm algorithm = new Algorithm(); // Algorithm | try { Algorithm result = apiInstance.algorithmsUpdate(id, algorithm); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AlgorithmsApi#algorithmsUpdate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } }
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | A unique integer value identifying this algorithm. | |
algorithm | Algorithm |
No authorization required
Status code | Description | Response headers |
---|---|---|
200 | - |