Skip to main content
← Data, API & Backend
Data, API & Backend Solved August 9, 2022 Β· 2 replies

Api details call not displaying datas πŸ“Š

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hello there 🌸

I'm having trouble with a detail page from a list πŸ“±

Capture d’écran 2022-08-09 aΜ€ 10.32.22.png

The list is working great, datas from the API are displaying βœ…

Capture d’écran 2022-08-09 aΜ€ 10.32.31.png

But in my single details page link to the list, datas are not dynamic or link to the API, I'm stuck with the figma text ❌

I triple checked my api's call.. Here's the one for the list :

Capture d’écran 2022-08-09 aΜ€ 10.24.42.png

Returning all the datas for the list correctly. In this call, I'm selecting this id to use it in the request for details page

Call for the details page :

Capture d’écran 2022-08-09 aΜ€ 10.24.22.png

I'm using {id} to use a dynamic variable. And when tested with a correct id, it's working. Then I'm just linking my design to this details call but it's not working πŸ˜”

I cant figure out what I'm doing wrong, feel free to ask any questions if needed πŸ”Ž

Hugo β˜€οΈ

2 replies

Hugo August 10, 2022

The error wasn't about the "/" or the "?". It depend on what you API call need. ${variable} is the only thing needed to interact with a dynamic variable. We fixed it, the error was because of an array displaying and not a value. In fact, Bravo can't display an array. Quite an easy fix finaly, we juste ad to delete "[]" of the response and everything work perfectly.
Thanks for your answer anyway πŸ™πŸΌ

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord