Search code examples
restionic-frameworkionic2hbase

Is there any method to connect HBase REST API with ionic app?


Several days ago i left a question is for a method to connect HBase with ionic app. A good guy give me a nice solution that is to use REST API. HBase provides REST API so i try to use it with curl command on terminal. But the actual problem is that I have to use them on ionic app. I'm a new for ionic and REST so i cannot find a good resources.

Is there any method to connect HBase REST API with ionic app?


Solution

  • As I understand from your query:

    1. Using REST API provided by HBase you want to do CRUD operations on your data
    2. You are able to simulate these operations using cli (curl) on your terminal. Thus you must be having your own (or hosted) HBase server. Hence you are aware of the events on which you want to call a specific API with specific set of data (in form of http GET or POST request)

    So it is matter of calling your api from ionic2 app.

    Here is a reference of blog on how to do REST call to your server.

    All you have to do is for a http event subscribe for response which will be returned by your HBase server

    I would suggest you to build a provider (service) to handle all your HBase server calls. Read this for more details on how to create a service