Nesting Tables Weweb

I want to nest tables. I have 10 topics with a lot of quotes. Each quote belongs to just one topic. I want the initial list to display a list of topics. Once user clicks a topic I want it to display a list of quotes that belongs to just that topic. I believe I need to nest the tables.

that will work have the first table bound to the list of topics and the second table to the list of quotes filtered by the topic

Ideally, you would have two APIs. One to display all the topics. Another to display the quotes associated with the selected topic.

When the user clicks on a topic, you call the second API - pass the selected topic as a parameter and fetch the associated quotes.