[Feature Request] Enable Dynamic List Rendering in Custom API Widget #4906
DescriptionCurrently, the Custom API widget in Homepage is limited to displaying specific, pre-defined data points from an API response. It does not support dynamically rendering a list of items from an array in the API response. As-Is Situation:The Custom API widget can only display individual values extracted from the API response, limiting its usefulness for APIs that return lists of items (e.g., a list of servers, a list of available updates, a list of models). For example, if an API returns a JSON response like this: The Custom API widget cannot be used to display a list of server names, unless you manually mark each item. To-Be Situation:The Custom API widget should be enhanced to support dynamically rendering a list of items from an array in the API response. This would allow users to create more dynamic and informative widgets. Using the example above, the Custom API widget should be able to generate a list of clickable server names, where each name is a link to a specific server. The list should dynamically change depending on the number of items returned from the API. Proposed Solution:Modify the Custom API widget to:
Benefits:
Example Configuration: Do I miss anything that is already possible? And if this is not the case, what would you think of the above solution? OtherNo response |
Replies: 4 comments 2 replies
|
How about keeping the list display and add an attribute to specify the root element? If it is an array, fields as columns?(?) If not, as usual. We could use the formatting options used on "list" |
|
I love this new dynamic-list for the customapi. It cuts down on so much repeated code. The docs don't seem to say if it's possible to set with this; but I need to format the label from a Unix timestamp to a |
|
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
#5012