Stream Slicing with Substreams

I have a stream that returns the leads uuIDs
And then, I have a substream that should use every ID from the parent stream to return data about every lead.

I’m doing like this:

def path(
        stream_state: Mapping[str, Any] = None,
        stream_slice: Mapping[str, Any] = None,
        next_page_token: Mapping[str, Any] = None
    ) -> str:
        return f"platform/contacts/uuid:{uuid}"

The problem is, this only returns data about the last lead ID. How can I make so it returns data about all IDs in the parent stream and not only the last one?
Do I need to define what is the parent stream_slice in the parent stream? Do I have to make a Loop?

Hi @caquinhodomato,
Could you please share your full implementation?