Module: Eson::HTTP::GetMapping

Extended by:
API
Includes:
Shared::GetMapping
Defined in:
lib/eson/http/indices/get_mapping.rb

Instance Method Summary collapse

Methods included from API

request_method

Instance Method Details

#pathObject



9
10
11
12
13
14
15
16
17
# File 'lib/eson/http/indices/get_mapping.rb', line 9

def path
  if !types.empty? && !indices.empty?
    "/{indices}/{types}/_mapping"
  elsif !indices.empty?
    "/{indices}/_mapping"
  else
    "/_mapping"
  end
end