Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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"
@Vikramk - It is saying me syntax error.
https://aa.com/api/v1/query/data?"mongoDbName"="aaa"&"collectionName"="bbb"&"fetchPageNumber"="1"&"noOfRecordsPerPage"="100"
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
The above option also I tried and getting an error saying that 400|HTTP 400 Bad Request.
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.
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"
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.