[[api-reference<%= branchSuffix %>]] == <%= branch === 'master' ? '' : branch + ' ' %>API <% _.each(actions, function (action) { %> [[<%= 'api-' + action.name.toLowerCase().replace(/[^\w]+/g, '-') + branchSuffix %>]] === `<%= action.name %>` [source,js] -------- client.<%= action.name %>([params, [callback]]) -------- <%= description(action.name) %> The default method is `<%= action.spec.method || 'GET' %>` and the usual <> apply. See <%= action.docUrl %>[the elasticsearch docs] for more about this method. <%= examples(action.name) %> <% if (_.size(action.allParams)) { %> ==== Params [horizontal]<% _.each(action.allParams, function (param, paramName) { %> `<%= paramWithDefault(paramName, param.default) %>`:: `<%= paramType(param.type) %>` -- <%= joinParagraphs(param.description || '', 4) %><% }); // endeach } // endif }); // endeach %>