docs: Fix broken build
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
bef01a19a2
commit
bf0c7e240f
@@ -6,17 +6,14 @@ Apache Fineract supports client code generation using https://openapi-generator.
|
||||
|
||||
The `fineract-client.jar` will eventually be available on Maven Central (watch https://issues.apache.org/jira/browse/FINERACT-1102[FINERACT-1102]). Until it is, you can quite easily build the latest and greatest version locally from source, see below.
|
||||
|
||||
The https://github.com/apache/fineract/search?q=FineractClient.java[`FineractClient`] is the entry point to the _Fineract SDK Java API Client_. https://github.com/apache/fineract/search?q=Calls.java[`Calls`] is a convenient and recommended utility to simplify the use of the https://square.github.io/retrofit/2.x/retrofit/retrofit2/Call.html[`retrofit2.Call`] type which all API operations return. Their benefit is illustrated e.g. in the https://github.com/apache/fineract/search?q=FineractClientTest.java[`FineractClientTest`], but in short:
|
||||
The https://github.com/apache/fineract/search?q=FineractClient.java[`FineractClient`] is the entry point to the _Fineract SDK Java API Client_. https://github.com/apache/fineract/search?q=Calls.java[`Calls`] is a convenient and recommended utility to simplify the use of the https://square.github.io/retrofit/2.x/retrofit/retrofit2/Call.html[`retrofit2.Call`] type which all API operations return. This permits you to use the API like the https://github.com/apache/fineract/search?q=FineractClientDemo.java[`FineractClientDemo`] illustrates:
|
||||
|
||||
[source,java]
|
||||
// /home/spaddo/workspace/fineract/vidakovic-fineract-develop/
|
||||
----
|
||||
import org.apache.fineract.client.util.FineractClient;
|
||||
import static org.apache.fineract.client.util.Calls.ok;
|
||||
|
||||
include::{rootdir}/fineract-client/src/test/java/org/apache/fineract/client/test/FineractClientTest.java[lines=44..45]
|
||||
|
||||
System.out.println(ok(fineract.clients.retrieveAll(...).getTotalFilteredRecords());
|
||||
include::{rootdir}/fineract-client/src/test/java/org/apache/fineract/client/test/FineractClientDemo.java[tags=documentation]
|
||||
----
|
||||
|
||||
=== Generate API Client
|
||||
@@ -31,4 +28,4 @@ If you need to save time to incrementally work on making small changes to Swagge
|
||||
|
||||
=== Validate OpenAPI Spec File
|
||||
|
||||
The `resolve` task in https://github.com/apache/fineract/blob/develop/fineract-provider/build.gradle#L80[build.gradle] file will generate the OpenAPI Spec File for the project. To make sure Swagger Codegen generates a correct library, it is important for the OpenAPI Spec file to be valid. Validation is done automatically by the OpenAPI code generator Gradle plugin. If you still have problems during code generation please use https://validator.swagger.io/[Swagger OpenAPI Validator] to validate the spec file.
|
||||
The `resolve` task in https://github.com/apache/fineract/blob/develop/fineract-provider/build.gradle#L80[build.gradle] file will generate the OpenAPI Spec File for the project. To make sure Swagger Codegen generates a correct library, it is important for the OpenAPI Spec file to be valid. Validation is done automatically by the OpenAPI code generator Gradle plugin. If you still have problems during code generation please use https://validator.swagger.io/[Swagger OpenAPI Validator] to validate the spec file.
|
||||
|
||||
Reference in New Issue
Block a user