Skip to content

Json retuned from API #110

Answered by renaudpawlak
HFolkertH asked this question in Q&A
Discussion options

You must be logged in to vote

The museum example is not the general case, because in the MET API, the search HTTP endpoint (in http-0) returns a list of matching IDs. So you need to invoke another HTTP endpoint in order to fetch the datas from the IDs (in http-1). That's why I use a mapper in this example, because it is an easy way to iterate through all the IDs and invoke the http-1 endpoint to fill the data.

In general, most REST endpoints return actual data and you don't need a mapper. If you need some sort of filtering/transformation of the returned data, you can probably just create a formula in the data source property of the component using the data.

I hope it will help.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HFolkertH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants