def get(path=nil)
      if param.key? "ids"
        get_ids(uri, param["ids"])
      else
        request = request(path, :get, nil, param, header)

        request.on_success do |response|
          if response.headers["Content-Type"] =~ /application\/json/

            @parsed = JSON.parse(response.body)

            if model?
              begin
                # hmm => will loose model!
                @modelwas = model
                @model = model.class.new(parsed)
                @mash = model
              rescue
                @model = @modelwas
                # Parsing only for JSON objects
              end
            end
          end
        end

      execute(request)
      end
    end
def get(path=nil)
      if param.key? "ids"
        get_ids(uri, param["ids"])
      else
        request = request(path, :get, nil, param, header)

        request.on_success do |response|
          if response.headers["Content-Type"] =~ /application\/json/

            @parsed = JSON.parse(response.body)

            if model?
              begin
                # hmm => will loose model!
                @modelwas = model
                @model = model.class.new(parsed)
                @mash = model
              rescue
                @model = @modelwas
                # Parsing only for JSON objects
              end
            end
          end
        end

      execute(request)
      end
    end
GET