GET /parameters/new
 GET /parameters/new.json
330694
def new
      @parameter = Parameter.new
  
      respond_to do |format|
        format.html # new.html.erb
        format.json { render json: @parameter }
      end
    end
397219
def downloads(params={})
      downloads = get("/orders/#{id}/downloads")
      if downloads
        downloads["downloads"].map { |data| FetchAppAPI::Download.new(data) }
      end
    end
270070
def endpoint_parameter(name, description, how_to_pass, required, type, params = {})
      parameters = settings.swagger_current_endpoint_parameters
      check_if_not_duplicate(name, parameters, 'Parameter')
      parameters[name] = Sinatra::SwaggerExposer::Configuration::SwaggerEndpointParameter.new(
        name,
        description,
        how_to_pass,
        required,
        type,
        params,
        settings.swagger_types.types_names)
    end
1302692
def params
      @params ||= begin
        params = request.params.symbolize_keys.merge(@initial_params)
        Volt::Model.new(params, persistor: Volt::Persistors::Params)
      end
    end
1372332
def get(path, params = {})
      headers = request_headers(:get, path, params)
      request(:get, path, params, headers)
    end
1055505
function getAdditionalParams() {
            var retval = {};
            var installDir = FileUtils.getNativeBracketsDirectoryPath();

            if (installDir) {
                var appPath = installDir.split("/Contents/www")[0];
                installDir = appPath.substr(0, appPath.lastIndexOf('/'));
                var appName = appPath.substr(appPath.lastIndexOf('/') + 1);

                retval = {
                    installDir: installDir,
                    appName: appName,
                    updateDir: updateDir
                };
            }
            return retval;
        }
423257
def update_params env, json
        env[FORM_HASH] = json
        env[BODY] = env[FORM_INPUT] = StringIO.new(Rack::Utils.build_query(json))
      end
895277
def new_post_params
      # take params from front-end request
      post_params = params.require(:post).permit(:title, :subtitle).to_h
      # add current superuser id
      post_params[:lato_core_superuser_creator_id] = @core__current_superuser.id
      # add post parent id
      post_params[:lato_blog_post_parent_id] = (params[:parent] && !params[:parent].blank? ? params[:parent] : generate_post_parent)
      # add metadata
      post_params[:meta_language] = cookies[:lato_blog__current_language]
      post_params[:meta_status] = BLOG_POSTS_STATUS[:drafted]
      # return final post object
      post_params
    end
1367803
function swaggerParamsMetadata (req, res, next) {
  req.swagger.params = util.getParameters(req.swagger.path, req.swagger.operation);
  next();
}
1352900
def NewFromJSON(data):
        
        if data.get('shakes', None):
            shakes = [Shake.NewFromJSON(shk) for shk in data.get('shakes')]
        else:
            shakes = None

        return User(
            id=data.get('id', None),
            name=data.get('name', None),
            profile_image_url=data.get('profile_image_url', None),
            about=data.get('about', None),
            website=data.get('website', None),
            shakes=shakes)
571915
def new
      @export = Export.new
      @dbs = get_dbs
      @tables = db_metadata
      respond_to do |format|
        format.html # new.html.erb
        format.json { render json: @export }
      end
    end
1108875
def new(options = { only: [], except: [:id, :created_at, :updated_at], required: [] })
      @thing_model = thing
      @thing = @thing_model.new
      @attrs = CEO::Iterator.filter(@thing.attributes.keys, options)
      @route_name ||= @controller_name ||= controller_name
      @index_route = send(:"admin_#{@route_name}_path")

      render 'admin/new'
    end
1130675
public function getQueryString(array $new_params = [])
    {
        $params = $_GET;
        if (!empty($this->input)) {
            $params[$this->getKey()] = $this->input;
        }
        if (!empty($new_params)) {
            if (empty($params[$this->getKey()])) {
                $params[$this->getKey()] = [];
            }
            foreach ($new_params as $key => $value) {
                $params[$this->getKey()][$key] = $value;
            }
        }
        return http_build_query($params);
    }
949250
function(headers, params) {
        var newHeaders = {};
        for (var header in headers)
            newHeaders[header] = headers[header];
        for (var param in params) {
            var re = new RegExp(":"+ param);
            for (var header in newHeaders) {
                if (newHeaders[header].search(re) != -1) {
                    newHeaders[header] = newHeaders[header].replace(re, params[param]);
                }
            }
        }
        return newHeaders;
    }
1330125
def new
      @contact = Contact.new
  
      respond_to do |format|
        format.html # new.html.erb
        format.json { render json: @contact }
      end
    end
1030926
def table_api_get(self, *paths, **kparams):
        
        url = self.flattened_params_url("/api/now/v1/table", *paths, **kparams)
        rjson = self.req("get", url).text
        return json.loads(rjson)
33180
def get_json(path)
      @request_uri = "#{@base_uri}#{path}" 
      req  = get_request(path)
      @res = http_connection.start {|http| http.request(req) }
      handle_error(@res, @request_uri)
      JSON.parse(@res.body)
    end