‎2025 Jan 01 9:43 AM - edited ‎2025 Jan 01 9:47 AM
Hi Experts,
I have been using the public REST API: https://services.odata.org/v4/northwind/northwind.svc/Orders.
In the new Configuration UI for "Universal REST API Integration," the "Response Key Path" is missing. I tested the API with the below configuration, saved the schema, and mapped it to a data variable for use across UI containers and components (refer to attached screenshots). However, no data appears during the web or mobile test process.
Please assist.
Request clarification before answering.
If you display the data in your data variable, you will find it empty, which explains why you don't see anything further along. There is a fundamental problem, which is you are executing a list, but you are returning an object (see your first screenshot).
There are 2 ways to do this:
To fix the current project using a REST data resource, you need to return a list in your list action. SO you have o get rid of everything else besides your list in the response. To do this, use the response mapper. It already has the basic coding, so you just add "value" to be the top level to be returned in the response.
{records: response.data.value, driverCode: response.status}
Now you use he data variable for the repeat, and the bind the fields to "data items in repeat". Not sure what you are doing with the nesting repeats, since there are no nested objects in the response.
But all his begs the question: Why not use the OData data resource for this OData API?
In the past people wanted to send complex OData filters, and this was not possible with the OData data resource, but now you can define actions, which will let you do all that, so I would think that is the way o go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.