Implement the bundles-containing API endpoint.

It's worth having at least one test, I think.