'Builds a dictionary of kwargs to help generate URIs.
Automatically provides the ``Resource.Meta.resource_name`` (and
optionally the ``Resource.Meta.api_name`` if populated by an ``Api``
object).
If the ``bundle_or_obj`` argument is provided, it calls
``Resource.detail_uri_kwargs`` for additional bits to create'

def resource_uri_kwargs(self, bundle_or_obj=None):

    kwargs = {u'resource_name': self._meta.resource_name}
    if (self._meta.api_name is not None):
        kwargs[u'api_name'] = self._meta.api_name
    if (bundle_or_obj is not None):
        kwargs.update(self.detail_uri_kwargs(bundle_or_obj))
    return kwargs
