Response addon
Options
![00liolio00](https://us.v-cdn.net/6037124/uploads/userpics/MYDI7BL4P5YD/n8IB4OJHR7TDK.jpg)
00liolio00
Member ✭
Hi everyone !
I have got a little problem with the construction of an api answer.
I have got a product with a list of supplements.
I created a list-type addon to return my supplement information.
Everything works perfectly but in my response array I get the id's.
This is annoying in my frontend and prevents me from displaying the data correctly.
Do you have any solution idea for me?
Thanks 😀
Answers
-
Hi @00liolio00 - you probably have your Addon set to return a list. Since your supplementsproduct field is already a list of items, you want your Addon to be set to return a single item. You're mapping each item in the list to the single object it references — not a list of items.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback