'Returns a flattened dictionary of API capabilities.
Capabilities supported by the currently configured storage driver.'

@wsme_pecan.wsexpose(Capabilities)
def get(self):

    conn = pecan.request.storage_conn
    driver_capabilities = conn.get_capabilities().copy()
    driver_perf = conn.get_storage_capabilities()
    return Capabilities(api=_flatten_capabilities(driver_capabilities), storage=_flatten_capabilities(driver_perf))
