Skip to content

Commit

Permalink
[API] Fix missing params for cat APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
estolfo committed Mar 28, 2019
1 parent 4d9f5fa commit 12da225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module Actions
#
def segments(arguments={})
method = 'GET'
path = "_cat/segments"
index = arguments.delete(:index)
path = Utils.__pathify( '_cat/segments', Utils.__escape(index))
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
body = nil

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ module Actions
#
def templates(arguments={})
method = HTTP_GET
path = "_cat/templates"
name = arguments.delete(:name)
path = Utils.__pathify( '_cat/templates', Utils.__escape(name))
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
body = nil

Expand Down

0 comments on commit 12da225

Please sign in to comment.