docs: def validate_rid(model, rid):
      """ Ensure the resource id is proper """
  
      rid_field = getattr(model, model.rid_field)
  
      if isinstance(rid_field, IntType):
          try:
              int(rid)
          except (TypeError, ValueError):
              abort(exceptions.InvalidURL(**{
                  'detail': 'The resource id {} in your request is not '
                            'syntactically correct. Only numeric type '
                            'resource id\'s are allowed'.format(rid)
              }))