elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

Elasticsearch::API::Utils#__parse_java_source

Parses the Elasticsearch source code and returns a Hash of REST API information/specs.

Example:

    {
      "cluster.health" => [
        { "method" => "GET",
          "path"   => "/_cluster/health",
          "parts"  => ["index"],
          "params" => ["index", "local",  ... ],
          "body"   => false
    }

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open elasticsearch-api/utils/thor/generate_api.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Elasticsearch--API--Utils-__parse_java_source-for-pr


# Commit to git

git add elasticsearch-api/utils/thor/generate_api.rbgit commit -m "better docs for Elasticsearch::API::Utils#__parse_java_source"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Elasticsearch--API--Utils-__parse_java_source-for-pr

hub pull-request


# Celebrate!