Implement the bundles-containing API endpoint.

Save allocations:

    for i := range entities {
        entity := &entities[i]
        if predicate(entity) {
            results =  append(results, entity)
    }