code: def get_resource_uri(self, obj):
          
          url = 'api:%s:%s-detail' % (
              self.api_version,
              getattr(
                  self, 'resource_view_name',
                  self.Meta.model._meta.model_name
              )
          )
  
          return reverse(url, request=self.context.get('request', None), kwargs={
              self.lookup_field: getattr(obj, self.lookup_field)
          })
docs: Return the uri of the given object.