def check_method(tab_ops, prefix, method_sym, do_call, *arguments, &block)
      method_sym = method_sym.id2name
      verb = :get
      [:post, :get, :delete, :put].each do |averb|
        if method_sym.start_with? averb.id2name
          verb = averb
          method_sym[averb.id2name + '_'] = ''
          break
        end
      end
      if tab_ops[verb].include? method_sym.to_sym
        if do_call
          params = arguments.first
          method = prefix + method_sym
          method += "/#{params.shift}"  if params.first && params.first.class != Hash
          return do_request verb, method, params.shift
        else
          return nil
        end
      end
      nil
    end
def check_method(tab_ops, prefix, method_sym, do_call, *arguments, &block)
      method_sym = method_sym.id2name
      verb = :get
      [:post, :get, :delete, :put].each do |averb|
        if method_sym.start_with? averb.id2name
          verb = averb
          method_sym[averb.id2name + '_'] = ''
          break
        end
      end
      if tab_ops[verb].include? method_sym.to_sym
        if do_call
          params = arguments.first
          method = prefix + method_sym
          method += "/#{params.shift}"  if params.first && params.first.class != Hash
          return do_request verb, method, params.shift
        else
          return nil
        end
      end
      nil
    end
Dynamic check of methods
 tab_ops contain the list of allowed method and verbs
 prefix the prefix to add to the method