[ 
https://issues.apache.org/jira/browse/FINERACT-1216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17216048#comment-17216048
 ] 

Michael Vorburger commented on FINERACT-1216:
---------------------------------------------

Personally I feel that a simple non-Spring required pure Java example class 
would be best to illustrate usage.

We sure could subsequently ALSO add a "Fineract SDK Spring glue" type thing, 
but I wouldn't make it mandatory.

Imagine Android, or even FINERACT-1209 Integration Tests - one shouldn't HAVE 
to use Spring?

I can't for the life of me figure out how to actually use this client for 
realz. I've just tried {{new ApiClient("basicAuth", "mifos", "password")}}, but 
that still gives me a {{retrofit2.adapter.rxjava2.HttpException: HTTP 400}}. I 
think the most useful next step here is just a plain 101 most simple "how does 
one use the fineract-client", given a URL (say 
{{https://demo.fineract.dev/fineract-provider/api/v1}}, Tenant (say 
{{default}}), Login (say {{mifos}}) & password (say {{password}}). If you know 
how one would actually do that, could you grab my 
https://github.com/apache/fineract/compare/develop...vorburger:FINERACT-1216_FineractClientTest
 and make a working PR out of it?

> docs/developers/swagger/client.md should explain how to authenticate and pass 
> tenant to Fineract
> ------------------------------------------------------------------------------------------------
>
>                 Key: FINERACT-1216
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1216
>             Project: Apache Fineract
>          Issue Type: Improvement
>            Reporter: Michael Vorburger
>            Assignee: Aleksandar Vidakovic
>            Priority: Major
>
> I am, for the first time, attempting to fool around with our shiny new SDK 
> Client Java API, for FINERACT-1209.
> In a 5' quick try between dinner a good movie I'm off to now, I've not 
> actually been able to easily figure out how to authenticate and pass the 
> tenant to Fineract. In an ideal world, I guess either 
> https://github.com/apache/fineract/blob/develop/docs/developers/swagger/client.md
>  should explain how end-users can do that, or (better!) we should point to 
> running example code illustrating it... I volunteer to raise a PR to do that 
> - if [~aleks] [~ChinmayKulkarni] either of you happen to know and care to 
> show me ;) how to actually use our shiny new SDK API client?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to