We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c398d9a commit 0d0b0bcCopy full SHA for 0d0b0bc
elasticsearch-api/utils/thor/generate_source.rb
@@ -171,6 +171,7 @@ def __endpoint_parts
171
172
def __http_method
173
return '_id ? Elasticsearch::API::HTTP_PUT : Elasticsearch::API::HTTP_POST' if @endpoint_name == 'index'
174
+ return '_name ? Elasticsearch::API::HTTP_PUT : Elasticsearch::API::HTTP_POST' if @method_name == 'create_service_token'
175
return post_and_get if @endpoint_name == 'count'
176
177
default_method = @spec['url']['paths'].map { |a| a['methods'] }.flatten.first
0 commit comments