Added API generation and Yaml testing for 1.x and 1.0 branches of elasticsearch.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/* jshint maxlen: false */
|
||||
|
||||
var ca = require('./client_action');
|
||||
var ca = require('../client_action');
|
||||
var api = module.exports = {};
|
||||
|
||||
api._namespaces = <%= stringify(namespaces) %>;<%
|
||||
|
||||
@ -1,16 +1,10 @@
|
||||
[[api-reference<%= branchSuffix %>]]<%
|
||||
|
||||
if ( branch === 'master' ) {%>
|
||||
== 1.0 API
|
||||
|
||||
NOTE: At this time, you must opt into the 1.0 API by setting the `apiVerion` config parameter.
|
||||
|
||||
<%
|
||||
} else {%>
|
||||
== 0.90 API
|
||||
|
||||
NOTE: This is currently the default API, but with the upcoming release of Elasticsearch 1.0 that will change. We recommend setting the `apiVersion` config param when you instantiate your client to make sure that the API does not change when the default does.
|
||||
[[api-reference<%= branchSuffix %>]]
|
||||
== <%= branch %> API
|
||||
|
||||
<% if (branchSuffix) { %>
|
||||
NOTE: At this time, you must opt into the <%= branch %> API by setting the `apiVerion` config parameter.
|
||||
<% } else { %>
|
||||
NOTE: This is currently the default API, but in upcomming versions that will change. We recommend setting the `apiVersion` config param when you instantiate your client to make sure that the API does not change unexpectedly.
|
||||
<%
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user