Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
svn1605078803
Contributor
Contributor

How to pass parameters in tRestClient component

Hi All,

Can someone please ping me the correct URL by using the below parameters so that I will be using the same in tRestClient component to pull data using restapi.

URL - https://abc.com/api/v1/retrive/data

"collectionName": "aa",

"mongoDbName": "bb",

"fetchPageNumber": "1",

"noOfRecordsPerPage": "100"

Appreciate for a quick response.

Labels (3)
1 Solution

Accepted Solutions
vikramk
Creator II
Creator II

Hi @Sagar Medimi​ ,

Please check with your Api team or who has shared the Api details whether it is working or not. There is no issue in talend job configuration. If the Api is working and parameters passed are correct then it should give response in Talend Api tester tool. As Api is not working you are getting that error.

You need to follow above shared ss method to configure the restclient component.

View solution in original post

7 Replies
vikramk
Creator II
Creator II

Hi @Sagar Medimi​ ,

You could try like below. However I tried testing the api but I'm getting 404 error. Please check for the api details shared here. Please let me know if it helps.

 

https://abc.com/api/v1/retrive/data?"collectionName"="aa"&"mongoDbName"="bb"&"fetchPageNumber"="1"&"noOfRecordsPerPage"="100"

svn1605078803
Contributor
Contributor
Author

@Vikramk - It is saying me syntax error.

 

https://aa.com/api/v1/query/data?"mongoDbName"="aaa"&"collectionName"="bbb"&"fetchPageNumber"="1"&"noOfRecordsPerPage"="100"

vikramk
Creator II
Creator II

Hi @Sagar Medimi​ ,

Please try like below. But I'm getting this error. check for api if there is any issue.

javax.ws.rs.NotFoundException: HTTP 404 Not Found

 

0693p00000AHOY8AAP.png

svn1605078803
Contributor
Contributor
Author

The above option also I tried and getting an error saying that 400|HTTP 400 Bad Request.

vikramk
Creator II
Creator II

Hi @Sagar Medimi​ ,

I have tested your api in talend api tester for it's response, its giving 404 error. Please check your api. Looks like there is some issue with api or with given parameters.

svn1605078803
Contributor
Contributor
Author

Thanks Vikram.

 

Can you please help me why it is showing as syntax error. If yes please let me know where I need to change.

 

https://aa.com/api/v1/query/data?"mongoDbName"="aaa"&"collectionName"="bbb"&"fetchPageNumber"="1"&"noOfRecordsPerPage"="100"

 

vikramk
Creator II
Creator II

Hi @Sagar Medimi​ ,

Please check with your Api team or who has shared the Api details whether it is working or not. There is no issue in talend job configuration. If the Api is working and parameters passed are correct then it should give response in Talend Api tester tool. As Api is not working you are getting that error.

You need to follow above shared ss method to configure the restclient component.