Can you help me configure my REST Client Response Output Value Selector?
F
Fathia Jama
started a topic
over 4 years ago
Can you help me configure my REST Client Response Output Value Selector ?
Best Answer
F
Fathia Jama
said
over 4 years ago
When following the documentation on declaring REST Clients, it is mentioned that the Response Output Value Selector corresponds to "a JSON Path, starting from the root of the response payload and pointing to a single value in the payload".
To help find the desired JSON Path you may follow these steps :
make your API call work using an external tool like Postman and copy the received response :
https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43330056669/original/uzs-gP1ORVlRsZWc5ZppNJ-TK1eB9xC0zA.png?1654537773" data-fileid="43330056669" data-uniquekey="1654537801185">Working test on Postman -> copy Response
find the desired JSON path for your Response Output using a tool like JSON Path Finder :
Response copied on the left, Path found by clicking on the right
Validate the retrieved path using a similar JayWay evaluator than ours (x. has to be removed from the beginning of the path for example) :
Copy the path into the Value Selector for the tested Response Output :
Test your REST Client configuration using the test button :
Successful test
Your REST Client is ready for use in an API Enricher!
I hope this helps!
Stéphanie.
1 Comment
F
Fathia Jama
said
over 4 years ago
Answer
When following the documentation on declaring REST Clients, it is mentioned that the Response Output Value Selector corresponds to "a JSON Path, starting from the root of the response payload and pointing to a single value in the payload".
To help find the desired JSON Path you may follow these steps :
make your API call work using an external tool like Postman and copy the received response :
https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43330056669/original/uzs-gP1ORVlRsZWc5ZppNJ-TK1eB9xC0zA.png?1654537773" data-fileid="43330056669" data-uniquekey="1654537801185">Working test on Postman -> copy Response
find the desired JSON path for your Response Output using a tool like JSON Path Finder :
Response copied on the left, Path found by clicking on the right
Validate the retrieved path using a similar JayWay evaluator than ours (x. has to be removed from the beginning of the path for example) :
Copy the path into the Value Selector for the tested Response Output :
Test your REST Client configuration using the test button :
Successful test
Your REST Client is ready for use in an API Enricher!
Fathia Jama
Can you help me configure my REST Client Response Output Value Selector ?
When following the documentation on declaring REST Clients, it is mentioned that the Response Output Value Selector corresponds to "a JSON Path, starting from the root of the response payload and pointing to a single value in the payload".
To help find the desired JSON Path you may follow these steps :
x.has to be removed from the beginning of the path for example) :Your REST Client is ready for use in an API Enricher!
I hope this helps!
Stéphanie.
Fathia Jama
When following the documentation on declaring REST Clients, it is mentioned that the Response Output Value Selector corresponds to "a JSON Path, starting from the root of the response payload and pointing to a single value in the payload".
To help find the desired JSON Path you may follow these steps :
x.has to be removed from the beginning of the path for example) :Your REST Client is ready for use in an API Enricher!
I hope this helps!
Stéphanie.
-
Recreate a dev environment. Any side effect?
-
Is Tomcat Manager Accessible Remotely
-
Cleaning mta_task_def
-
Drop tables within the datalocation schema
-
Which REST API that can be used for "Deploy Model Edition" ?
-
Session timeout settings
-
Audit logs in Semarchy
-
Automatic Deployment
-
Error while creating Model from API
See all 49 topics