
I'm trying to call data from a REST API, so I use RESTClient on Pentaho Data Integration version 9.4, but somehow I can't change or declare the application type into something that I want, it greyed out and I can't selected it.
Please Help
I've found that if I change the HTTP Method to something else, I can change the application type, but I need the HTTP Method to be GET Method so I can't change it to be anything else other than GET, but then because of that, I can't change the Application Type.
When you select the
HTTP Method = GETin Pentaho, it expects to receive data from the REST API server. It is not meant to send data to the server in a particular format, so theApplication Typesection is disabled. In the REST Client Step, theApplication Typeis linked with theBody Fieldas an indication of what type of body/data is sent to the REST API server. In the case ofHTTP Method = POST / PUT /..., the API server expects the body data and hence it is enabled. This is not an issue in the Pentaho step.Alternatively, If you are expecting to receive the data from the REST server in a particular format using the GET method, you can always add it as an additional argument/filter as below:
The above call uses the
GETmethod to fetch the data and expects the format to be in XML. However, it also depends on the way your API server is sending back the request. I would suggest looking into your API server for documentation reference on using GET requests.Official Pentaho REST Client documentation for reference.