File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,28 @@ client = Elasticsearch::Client.new(
11
11
{ {#supportedApi} }
12
12
{ {#hasArgs} }
13
13
response{ {#if @index} }{ {@index} }{ {/if } } = client.{ {this.api} }(
14
+ { {#if this.body} }
14
15
{ {#each this.params} }
15
16
{ {alias @key ../this.request.path} }: "{ {{this} }}",
16
17
{ {/each} }
17
18
{ {#each this.query} }
18
19
{ {alias @key ../this.request.query} }: { {{rubyprint this} }},
19
20
{ {/each} }
20
- { {#if this.body} }
21
21
body: { {{rubyprint this.body} }}
22
+ { {else } }
23
+ { {#if this.query} }
24
+ { {#each this.params} }
25
+ { {alias @key ../this.request.path} }: "{ {{this} }}",
26
+ { {/each} }
27
+ { {#each this.query} }
28
+ { {alias @key ../this.request.query} }: { {{rubyprint this} }}{ {#unless @last} },{ {/unless} }
29
+ { {/each} }
30
+ { {else } }
31
+ { {#each this.params} }
32
+ { {alias @key ../this.request.path} }: "{ {{this} }}"{ {#unless @last} },{ {/unless} }
33
+ { {/each} }
22
34
{ {/if } }
35
+ { {/if } }
23
36
)
24
37
{ {else } }
25
38
response{ {#if @index} }{ {@index} }{ {/if } } = client.{ {this.api} }
You can’t perform that action at this time.
0 commit comments