wf_node_api 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/Gemfile +28 -0
- data/Gemfile.lock +66 -0
- data/LICENSE +340 -0
- data/Makefile +19 -0
- data/README.md +78 -0
- data/Rakefile +2 -0
- data/Vagrantfile +102 -0
- data/_docs/api/Api/NodeApi.html +123 -0
- data/_docs/api/Api.html +149 -0
- data/_docs/api/Config/Check.html +331 -0
- data/_docs/api/Config.html +115 -0
- data/_docs/api/ConfigCheck.html +365 -0
- data/_docs/api/ContainerManager.html +1632 -0
- data/_docs/api/ContainerManagerAdapter/Lxc.html +1352 -0
- data/_docs/api/ContainerManagerAdapter/Vserver.html +1358 -0
- data/_docs/api/ContainerManagerAdapter.html +151 -0
- data/_docs/api/Error/NotFound.html +134 -0
- data/_docs/api/Error.html +115 -0
- data/_docs/api/NotFoundError.html +157 -0
- data/_docs/api/OS.html +234 -0
- data/_docs/api/ResourceManager.html +322 -0
- data/_docs/api/ResourceManagerAdapter/Linux.html +326 -0
- data/_docs/api/ResourceManagerAdapter.html +149 -0
- data/_docs/api/WfNodeApi.html +163 -0
- data/_docs/api/_index.html +239 -0
- data/_docs/api/class_list.html +58 -0
- data/_docs/api/css/common.css +1 -0
- data/_docs/api/css/full_list.css +57 -0
- data/_docs/api/css/style.css +339 -0
- data/_docs/api/file.README.html +146 -0
- data/_docs/api/file_list.html +60 -0
- data/_docs/api/frames.html +26 -0
- data/_docs/api/index.html +146 -0
- data/_docs/api/js/app.js +219 -0
- data/_docs/api/js/full_list.js +181 -0
- data/_docs/api/js/jquery.js +4 -0
- data/_docs/api/method_list.html +273 -0
- data/_docs/api/top-level-namespace.html +244 -0
- data/_docs/rest/api_data.js +1 -0
- data/_docs/rest/api_data.json +1 -0
- data/_docs/rest/api_project.js +1 -0
- data/_docs/rest/api_project.json +1 -0
- data/_docs/rest/css/style.css +538 -0
- data/_docs/rest/header.md +3 -0
- data/_docs/rest/img/favicon.ico +0 -0
- data/_docs/rest/img/glyphicons-halflings-white.png +0 -0
- data/_docs/rest/img/glyphicons-halflings.png +0 -0
- data/_docs/rest/index.html +658 -0
- data/_docs/rest/locales/de.js +25 -0
- data/_docs/rest/locales/fr.js +25 -0
- data/_docs/rest/locales/locale.js +43 -0
- data/_docs/rest/locales/nl.js +25 -0
- data/_docs/rest/locales/pl.js +25 -0
- data/_docs/rest/locales/pt_br.js +25 -0
- data/_docs/rest/locales/ru.js +25 -0
- data/_docs/rest/locales/zh.js +25 -0
- data/_docs/rest/main.js +691 -0
- data/_docs/rest/utils/handlebars_helper.js +327 -0
- data/_docs/rest/utils/send_sample_request.js +158 -0
- data/_docs/rest/vendor/bootstrap-responsive.min.css +9 -0
- data/_docs/rest/vendor/bootstrap.min.css +9 -0
- data/_docs/rest/vendor/bootstrap.min.js +6 -0
- data/_docs/rest/vendor/diff_match_patch.min.js +49 -0
- data/_docs/rest/vendor/handlebars.min.js +28 -0
- data/_docs/rest/vendor/jquery.min.js +4 -0
- data/_docs/rest/vendor/lodash.min.js +61 -0
- data/_docs/rest/vendor/path-to-regexp/LICENSE +21 -0
- data/_docs/rest/vendor/path-to-regexp/index.js +205 -0
- data/_docs/rest/vendor/polyfill.js +100 -0
- data/_docs/rest/vendor/prettify/lang-apollo.js +2 -0
- data/_docs/rest/vendor/prettify/lang-basic.js +3 -0
- data/_docs/rest/vendor/prettify/lang-clj.js +18 -0
- data/_docs/rest/vendor/prettify/lang-css.js +2 -0
- data/_docs/rest/vendor/prettify/lang-dart.js +3 -0
- data/_docs/rest/vendor/prettify/lang-erlang.js +2 -0
- data/_docs/rest/vendor/prettify/lang-go.js +1 -0
- data/_docs/rest/vendor/prettify/lang-hs.js +2 -0
- data/_docs/rest/vendor/prettify/lang-lisp.js +3 -0
- data/_docs/rest/vendor/prettify/lang-llvm.js +1 -0
- data/_docs/rest/vendor/prettify/lang-lua.js +2 -0
- data/_docs/rest/vendor/prettify/lang-matlab.js +6 -0
- data/_docs/rest/vendor/prettify/lang-ml.js +2 -0
- data/_docs/rest/vendor/prettify/lang-mumps.js +2 -0
- data/_docs/rest/vendor/prettify/lang-n.js +4 -0
- data/_docs/rest/vendor/prettify/lang-pascal.js +3 -0
- data/_docs/rest/vendor/prettify/lang-proto.js +1 -0
- data/_docs/rest/vendor/prettify/lang-r.js +2 -0
- data/_docs/rest/vendor/prettify/lang-rd.js +1 -0
- data/_docs/rest/vendor/prettify/lang-scala.js +2 -0
- data/_docs/rest/vendor/prettify/lang-sql.js +2 -0
- data/_docs/rest/vendor/prettify/lang-tcl.js +3 -0
- data/_docs/rest/vendor/prettify/lang-tex.js +1 -0
- data/_docs/rest/vendor/prettify/lang-vb.js +2 -0
- data/_docs/rest/vendor/prettify/lang-vhdl.js +3 -0
- data/_docs/rest/vendor/prettify/lang-wiki.js +2 -0
- data/_docs/rest/vendor/prettify/lang-xq.js +3 -0
- data/_docs/rest/vendor/prettify/lang-yaml.js +2 -0
- data/_docs/rest/vendor/prettify/prettify.css +1 -0
- data/_docs/rest/vendor/prettify/prettify.js +30 -0
- data/_docs/rest/vendor/prettify/run_prettify.js +34 -0
- data/_docs/rest/vendor/prettify.css +101 -0
- data/_docs/rest/vendor/require.min.js +36 -0
- data/apidoc.json +23 -0
- data/bin/wf_node_api +80 -0
- data/lib/wf_node_api/api/node_api.rb +360 -0
- data/lib/wf_node_api/config/config_template.erb +50 -0
- data/lib/wf_node_api/config_check.rb +50 -0
- data/lib/wf_node_api/container_manager.rb +286 -0
- data/lib/wf_node_api/container_manager_adapter/lxc.rb +431 -0
- data/lib/wf_node_api/container_manager_adapter/vserver.rb +448 -0
- data/lib/wf_node_api/error/not_found.rb +27 -0
- data/lib/wf_node_api/os.rb +32 -0
- data/lib/wf_node_api/resource_manager.rb +49 -0
- data/lib/wf_node_api/resource_manager_adapter/linux.rb +53 -0
- data/lib/wf_node_api/translations.rb +38 -0
- data/lib/wf_node_api/version.rb +28 -0
- data/lib/wf_node_api.rb +57 -0
- data/manifests/files/dhozac-vserver.repo +4 -0
- data/wf-node-api.gemspec +53 -0
- metadata +221 -0
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<title>Loading...</title>
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
7
|
+
<link href="vendor/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
8
|
+
<link href="vendor/prettify.css" rel="stylesheet" media="screen">
|
|
9
|
+
<link href="css/style.css" rel="stylesheet" media="screen, print">
|
|
10
|
+
<link href="img/favicon.ico" rel="icon" type="image/x-icon">
|
|
11
|
+
<script src="vendor/polyfill.js"></script>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
|
|
15
|
+
<script id="template-sidenav" type="text/x-handlebars-template">
|
|
16
|
+
<nav id="scrollingNav">
|
|
17
|
+
<ul class="sidenav nav nav-list">
|
|
18
|
+
{{#each nav}}
|
|
19
|
+
{{#if title}}
|
|
20
|
+
{{#if isHeader}}
|
|
21
|
+
{{#if isFixed}}
|
|
22
|
+
<li class="nav-fixed nav-header" data-group="{{group}}"><a href="#api-{{group}}">{{underscoreToSpace title}}</a></li>
|
|
23
|
+
{{else}}
|
|
24
|
+
<li class="nav-header" data-group="{{group}}"><a href="#api-{{group}}">{{underscoreToSpace title}}</a></li>
|
|
25
|
+
{{/if}}
|
|
26
|
+
{{else}}
|
|
27
|
+
<li {{#if hidden}}class="hide" {{/if}}data-group="{{group}}" data-name="{{name}}" data-version="{{version}}">
|
|
28
|
+
<a href="#api-{{group}}-{{name}}">{{title}}</a>
|
|
29
|
+
</li>
|
|
30
|
+
{{/if}}
|
|
31
|
+
{{/if}}
|
|
32
|
+
{{/each}}
|
|
33
|
+
</ul>
|
|
34
|
+
</nav>
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<script id="template-project" type="text/x-handlebars-template">
|
|
38
|
+
<div class="pull-left">
|
|
39
|
+
<h1>{{name}}</h1>
|
|
40
|
+
{{#if description}}<h2>{{{nl2br description}}}</h2>{{/if}}
|
|
41
|
+
</div>
|
|
42
|
+
{{#if template.withCompare}}
|
|
43
|
+
<div class="pull-right">
|
|
44
|
+
<div class="btn-group">
|
|
45
|
+
<button id="version" class="btn btn-large dropdown-toggle" data-toggle="dropdown">
|
|
46
|
+
<strong>{{version}}</strong> <span class="caret"></span>
|
|
47
|
+
</button>
|
|
48
|
+
<ul id="versions" class="dropdown-menu open-left">
|
|
49
|
+
<li><a id="compareAllWithPredecessor" href="#">{{__ "Compare all with predecessor"}}</a></li>
|
|
50
|
+
<li class="divider"></li>
|
|
51
|
+
<li class="disabled"><a href="#">{{__ "show up to version:"}}</a></li>
|
|
52
|
+
{{#each versions}}
|
|
53
|
+
<li class="version"><a href="#">{{this}}</a></li>
|
|
54
|
+
{{/each}}
|
|
55
|
+
</ul>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
{{/if}}
|
|
59
|
+
<div class="clearfix"></div>
|
|
60
|
+
</script>
|
|
61
|
+
|
|
62
|
+
<script id="template-header" type="text/x-handlebars-template">
|
|
63
|
+
{{#if content}}
|
|
64
|
+
<div id="api-_">{{{content}}}</div>
|
|
65
|
+
{{/if}}
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<script id="template-footer" type="text/x-handlebars-template">
|
|
69
|
+
{{#if content}}
|
|
70
|
+
<div id="api-_footer">{{{content}}}</div>
|
|
71
|
+
{{/if}}
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<script id="template-generator" type="text/x-handlebars-template">
|
|
75
|
+
{{#if template.withGenerator}}
|
|
76
|
+
{{#if generator}}
|
|
77
|
+
<div class="content">
|
|
78
|
+
{{__ "Generated with"}} <a href="{{{generator.url}}}">{{{generator.name}}}</a> {{{generator.version}}} - {{{generator.time}}}
|
|
79
|
+
</div>
|
|
80
|
+
{{/if}}
|
|
81
|
+
{{/if}}
|
|
82
|
+
</script>
|
|
83
|
+
|
|
84
|
+
<script id="template-sections" type="text/x-handlebars-template">
|
|
85
|
+
<section id="api-{{group}}">
|
|
86
|
+
<h1>{{underscoreToSpace title}}</h1>
|
|
87
|
+
{{#if description}}
|
|
88
|
+
<p>{{{nl2br description}}}</p>
|
|
89
|
+
{{/if}}
|
|
90
|
+
{{#each articles}}
|
|
91
|
+
<div id="api-{{group}}-{{name}}">
|
|
92
|
+
{{{article}}}
|
|
93
|
+
</div>
|
|
94
|
+
{{/each}}
|
|
95
|
+
</section>
|
|
96
|
+
</script>
|
|
97
|
+
|
|
98
|
+
<script id="template-article" type="text/x-handlebars-template">
|
|
99
|
+
<article id="api-{{article.group}}-{{article.name}}-{{article.version}}" {{#if hidden}}class="hide"{{/if}} data-group="{{article.group}}" data-name="{{article.name}}" data-version="{{article.version}}">
|
|
100
|
+
<div class="pull-left">
|
|
101
|
+
<h1>{{article.groupTitle}}{{#if article.title}} - {{article.title}}{{/if}}</h1>
|
|
102
|
+
</div>
|
|
103
|
+
{{#if template.withCompare}}
|
|
104
|
+
<div class="pull-right">
|
|
105
|
+
<div class="btn-group">
|
|
106
|
+
<button class="version btn dropdown-toggle" data-toggle="dropdown">
|
|
107
|
+
<strong>{{article.version}}</strong> <span class="caret"></span>
|
|
108
|
+
</button>
|
|
109
|
+
<ul class="versions dropdown-menu open-left">
|
|
110
|
+
<li class="disabled"><a href="#">{{__ "compare changes to:"}}</a></li>
|
|
111
|
+
{{#each versions}}
|
|
112
|
+
<li class="version"><a href="#">{{this}}</a></li>
|
|
113
|
+
{{/each}}
|
|
114
|
+
</ul>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
{{/if}}
|
|
118
|
+
<div class="clearfix"></div>
|
|
119
|
+
|
|
120
|
+
{{#if article.description}}
|
|
121
|
+
<p>{{{nl2br article.description}}}</p>
|
|
122
|
+
{{/if}}
|
|
123
|
+
|
|
124
|
+
<pre class="prettyprint language-html" data-type="{{toLowerCase article.type}}"><code>{{article.url}}</code></pre>
|
|
125
|
+
|
|
126
|
+
{{#if article.permission}}
|
|
127
|
+
<p>
|
|
128
|
+
{{__ "Permission:"}}
|
|
129
|
+
{{#each article.permission}}
|
|
130
|
+
{{name}}
|
|
131
|
+
{{#if title}}
|
|
132
|
+
<a href="#" data-toggle="popover" data-placement="right" data-html="true" data-content="{{nl2br description}}" title="" data-original-title="{{title}}"><span class="label label-info"><i class="icon icon-info-sign icon-white"></i></span></a>
|
|
133
|
+
{{#unless @last}}, {{/unless}}
|
|
134
|
+
{{/if}}
|
|
135
|
+
{{/each}}
|
|
136
|
+
</p>
|
|
137
|
+
{{/if}}
|
|
138
|
+
|
|
139
|
+
{{#if_gt article.examples.length compare=0}}
|
|
140
|
+
<ul class="nav nav-tabs nav-tabs-examples">
|
|
141
|
+
{{#each article.examples}}
|
|
142
|
+
<li{{#if_eq @index compare=0}} class="active"{{/if_eq}}>
|
|
143
|
+
<a href="#examples-{{../id}}-{{@index}}">{{title}}</a>
|
|
144
|
+
</li>
|
|
145
|
+
{{/each}}
|
|
146
|
+
</ul>
|
|
147
|
+
|
|
148
|
+
<div class="tab-content">
|
|
149
|
+
{{#each article.examples}}
|
|
150
|
+
<div class="tab-pane{{#if_eq @index compare=0}} active{{/if_eq}}" id="examples-{{../id}}-{{@index}}">
|
|
151
|
+
<pre class="prettyprint language-{{type}}" data-type="{{type}}"><code>{{content}}</code></pre>
|
|
152
|
+
</div>
|
|
153
|
+
{{/each}}
|
|
154
|
+
</div>
|
|
155
|
+
{{/if_gt}}
|
|
156
|
+
|
|
157
|
+
{{subTemplate "article-param-block" params=article.header _hasType=_hasTypeInHeaderFields section="header"}}
|
|
158
|
+
{{subTemplate "article-param-block" params=article.parameter _hasType=_hasTypeInParameterFields section="parameter"}}
|
|
159
|
+
{{subTemplate "article-param-block" params=article.success _hasType=_hasTypeInSuccessFields section="success"}}
|
|
160
|
+
{{subTemplate "article-param-block" params=article.error _col1="Name" _hasType=_hasTypeInErrorFields section="error"}}
|
|
161
|
+
|
|
162
|
+
{{subTemplate "article-sample-request" article=article id=id}}
|
|
163
|
+
|
|
164
|
+
</article>
|
|
165
|
+
</script>
|
|
166
|
+
|
|
167
|
+
<script id="template-article-param-block" type="text/x-handlebars-template">
|
|
168
|
+
{{#if params}}
|
|
169
|
+
{{#each params.fields}}
|
|
170
|
+
<h2>{{__ @key}}</h2>
|
|
171
|
+
<table>
|
|
172
|
+
<thead>
|
|
173
|
+
<tr>
|
|
174
|
+
<th style="width: 30%">{{#if _col1}}{{__ _col1}}{{else}}{{__ "Field"}}{{/if}}</th>
|
|
175
|
+
{{#if ../../_hasType}}<th style="width: 10%">{{__ "Type"}}</th>{{/if}}
|
|
176
|
+
<th style="width: {{#if _hasType}}60%{{else}}70%{{/if}}">{{__ "Description"}}</th>
|
|
177
|
+
</tr>
|
|
178
|
+
</thead>
|
|
179
|
+
<tbody>
|
|
180
|
+
{{#each this}}
|
|
181
|
+
<tr>
|
|
182
|
+
<td class="code">{{{splitFill field "." " "}}}{{#if optional}} <span class="label label-optional">{{__ "optional"}}</span>{{/if}}</td>
|
|
183
|
+
{{#if ../../_hasType}}
|
|
184
|
+
<td>
|
|
185
|
+
{{{type}}}
|
|
186
|
+
</td>
|
|
187
|
+
{{/if}}
|
|
188
|
+
<td>
|
|
189
|
+
{{{nl2br description}}}
|
|
190
|
+
{{#if defaultValue}}<p class="default-value">{{__ "Default value:"}} <code>{{{defaultValue}}}</code></p>{{/if}}
|
|
191
|
+
{{#if size}}<p class="type-size">{{__ "Size range:"}} <code>{{{size}}}</code></p>{{/if}}
|
|
192
|
+
{{#if allowedValues}}<p class="type-size">{{__ "Allowed values:"}}
|
|
193
|
+
{{#each allowedValues}}
|
|
194
|
+
<code>{{{this}}}</code>{{#unless @last}}, {{/unless}}
|
|
195
|
+
{{/each}}
|
|
196
|
+
</p>
|
|
197
|
+
{{/if}}
|
|
198
|
+
</td>
|
|
199
|
+
</tr>
|
|
200
|
+
{{/each}}
|
|
201
|
+
</tbody>
|
|
202
|
+
</table>
|
|
203
|
+
{{/each}}
|
|
204
|
+
|
|
205
|
+
{{#if_gt params.examples.length compare=0}}
|
|
206
|
+
<ul class="nav nav-tabs nav-tabs-examples">
|
|
207
|
+
{{#each params.examples}}
|
|
208
|
+
<li{{#if_eq @index compare=0}} class="active"{{/if_eq}}>
|
|
209
|
+
<a href="#{{../section}}-examples-{{../id}}-{{@index}}">{{title}}</a>
|
|
210
|
+
</li>
|
|
211
|
+
{{/each}}
|
|
212
|
+
</ul>
|
|
213
|
+
|
|
214
|
+
<div class="tab-content">
|
|
215
|
+
{{#each params.examples}}
|
|
216
|
+
<div class="tab-pane{{#if_eq @index compare=0}} active{{/if_eq}}" id="{{../section}}-examples-{{../id}}-{{@index}}">
|
|
217
|
+
<pre class="prettyprint language-{{type}}" data-type="{{type}}"><code>{{content}}</code></pre>
|
|
218
|
+
</div>
|
|
219
|
+
{{/each}}
|
|
220
|
+
</div>
|
|
221
|
+
{{/if_gt}}
|
|
222
|
+
|
|
223
|
+
{{/if}}
|
|
224
|
+
</script>
|
|
225
|
+
|
|
226
|
+
<script id="template-article-sample-request" type="text/x-handlebars-template">
|
|
227
|
+
{{#if article.sampleRequest}}
|
|
228
|
+
<h2>{{__ "Send a Sample Request"}}</h2>
|
|
229
|
+
<form class="form-horizontal">
|
|
230
|
+
<fieldset>
|
|
231
|
+
<div class="control-group">
|
|
232
|
+
<div class="controls">
|
|
233
|
+
<div class="input-prepend">>
|
|
234
|
+
<span class="add-on">{{__ "url"}}</span>
|
|
235
|
+
<input type="text" class="input-xxlarge sample-request-url" value="{{article.sampleRequest.0.url}}" />
|
|
236
|
+
</div>
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
{{#if article.header}}
|
|
241
|
+
{{#if article.header.fields}}
|
|
242
|
+
<h3>{{__ "Headers"}}</h3>
|
|
243
|
+
{{#each article.header.fields}}
|
|
244
|
+
<h4><input type="radio" data-sample-request-header-group-id="sample-request-header-{{@index}}" name="{{../id}}-sample-request-header" value="{{@index}}" class="sample-request-header sample-request-switch"{{#if_eq @index compare=0}} checked{{/if_eq}}> {{@key}}</h4>
|
|
245
|
+
<div class="{{../id}}-sample-request-header-fields{{#if_gt @index compare=0}} hide{{/if_gt}}">
|
|
246
|
+
{{#each this}}
|
|
247
|
+
<div class="control-group">
|
|
248
|
+
<label class="control-label" for="sample-request-header-field-{{field}}">{{field}}</label>
|
|
249
|
+
<div class="controls">
|
|
250
|
+
<div class="input-append">>
|
|
251
|
+
<input type="text" placeholder="{{field}}" class="input-xxlarge sample-request-header" data-sample-request-header-name="{{field}}" data-sample-request-header-group="sample-request-header-{{@../index}}">
|
|
252
|
+
<span class="add-on">{{type}}</span>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
{{/each}}
|
|
257
|
+
</div>
|
|
258
|
+
{{/each}}
|
|
259
|
+
{{/if}}
|
|
260
|
+
{{/if}}
|
|
261
|
+
|
|
262
|
+
{{#if article.parameter}}
|
|
263
|
+
{{#if article.parameter.fields}}
|
|
264
|
+
<h3>{{__ "Parameters"}}</h3>
|
|
265
|
+
{{#each article.parameter.fields}}
|
|
266
|
+
<h4><input type="radio" data-sample-request-param-group-id="sample-request-param-{{@index}}" name="{{../id}}-sample-request-param" value="{{@index}}" class="sample-request-param sample-request-switch"{{#if_eq @index compare=0}} checked{{/if_eq}}> {{@key}}</h4>
|
|
267
|
+
<div class="{{../id}}-sample-request-param-fields{{#if_gt @index compare=0}} hide{{/if_gt}}">
|
|
268
|
+
{{#each this}}
|
|
269
|
+
<div class="control-group">
|
|
270
|
+
<label class="control-label" for="sample-request-param-field-{{field}}">{{field}}</label>
|
|
271
|
+
<div class="controls">
|
|
272
|
+
<div class="input-append">>
|
|
273
|
+
<input type="text" placeholder="{{field}}" class="input-xxlarge sample-request-param" data-sample-request-param-name="{{field}}" data-sample-request-param-group="sample-request-param-{{@../index}}">
|
|
274
|
+
<span class="add-on">{{type}}</span>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
{{/each}}
|
|
279
|
+
</div>
|
|
280
|
+
{{/each}}
|
|
281
|
+
{{/if}}
|
|
282
|
+
{{/if}}
|
|
283
|
+
|
|
284
|
+
<div class="control-group">
|
|
285
|
+
<div class="controls">
|
|
286
|
+
<button class="btn btn-default sample-request-send" data-sample-request-type="{{article.type}}">{{__ "Send"}}</button>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<div class="sample-request-response" style="display: none;">
|
|
291
|
+
<h3>
|
|
292
|
+
{{__ "Response"}}
|
|
293
|
+
<button class="btn btn-small btn-default pull-right sample-request-clear">X</button>
|
|
294
|
+
</h3>
|
|
295
|
+
<pre class="prettyprint language-json" data-type="json"><code class="sample-request-response-json"></code></pre>
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
</fieldset>
|
|
299
|
+
</form>
|
|
300
|
+
{{/if}}
|
|
301
|
+
</script>
|
|
302
|
+
|
|
303
|
+
<script id="template-compare-article" type="text/x-handlebars-template">
|
|
304
|
+
<article id="api-{{article.group}}-{{article.name}}-{{article.version}}" {{#if hidden}}class="hide"{{/if}} data-group="{{article.group}}" data-name="{{article.name}}" data-version="{{article.version}}" data-compare-version="{{compare.version}}">
|
|
305
|
+
<div class="pull-left">
|
|
306
|
+
<h1>{{underscoreToSpace article.group}} - {{{showDiff article.title compare.title}}}</h1>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
<div class="pull-right">
|
|
310
|
+
<div class="btn-group">
|
|
311
|
+
<button class="btn btn-success" disabled>
|
|
312
|
+
<strong>{{article.version}}</strong> {{__ "compared to"}}
|
|
313
|
+
</button>
|
|
314
|
+
<button class="version btn btn-danger dropdown-toggle" data-toggle="dropdown">
|
|
315
|
+
<strong>{{compare.version}}</strong> <span class="caret"></span>
|
|
316
|
+
</button>
|
|
317
|
+
<ul class="versions dropdown-menu open-left">
|
|
318
|
+
<li class="disabled"><a href="#">{{__ "compare changes to:"}}</a></li>
|
|
319
|
+
<li class="divider"></li>
|
|
320
|
+
{{#each versions}}
|
|
321
|
+
<li class="version"><a href="#">{{this}}</a></li>
|
|
322
|
+
{{/each}}
|
|
323
|
+
</ul>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
<div class="clearfix"></div>
|
|
327
|
+
|
|
328
|
+
{{#if article.description}}
|
|
329
|
+
<p>{{{showDiff article.description compare.description "nl2br"}}}</p>
|
|
330
|
+
{{else}}
|
|
331
|
+
{{#if compare.description}}
|
|
332
|
+
<p>{{{showDiff "" compare.description "nl2br"}}}</p>
|
|
333
|
+
{{/if}}
|
|
334
|
+
{{/if}}
|
|
335
|
+
|
|
336
|
+
<pre class="prettyprint language-html" data-type="{{toLowerCase article.type}}"><code>{{{showDiff article.url compare.url}}}</code></pre>
|
|
337
|
+
|
|
338
|
+
{{subTemplate "article-compare-permission" article=article compare=compare}}
|
|
339
|
+
|
|
340
|
+
<ul class="nav nav-tabs nav-tabs-examples">
|
|
341
|
+
{{#each_compare_title article.examples compare.examples}}
|
|
342
|
+
|
|
343
|
+
{{#if typeSame}}
|
|
344
|
+
<li{{#if_eq index compare=0}} class="active"{{/if_eq}}>
|
|
345
|
+
<a href="#compare-examples-{{../../article.id}}-{{index}}">{{{showDiff source.title compare.title}}}</a>
|
|
346
|
+
</li>
|
|
347
|
+
{{/if}}
|
|
348
|
+
|
|
349
|
+
{{#if typeIns}}
|
|
350
|
+
<li{{#if_eq index compare=0}} class="active"{{/if_eq}}>
|
|
351
|
+
<a href="#compare-examples-{{../../article.id}}-{{index}}"><ins>{{{source.title}}}</ins></a>
|
|
352
|
+
</li>
|
|
353
|
+
{{/if}}
|
|
354
|
+
|
|
355
|
+
{{#if typeDel}}
|
|
356
|
+
<li{{#if_eq index compare=0}} class="active"{{/if_eq}}>
|
|
357
|
+
<a href="#compare-examples-{{../../article.id}}-{{index}}"><del>{{{compare.title}}}</del></a>
|
|
358
|
+
</li>
|
|
359
|
+
{{/if}}
|
|
360
|
+
|
|
361
|
+
{{/each_compare_title}}
|
|
362
|
+
</ul>
|
|
363
|
+
|
|
364
|
+
<div class="tab-content">
|
|
365
|
+
{{#each_compare_title article.examples compare.examples}}
|
|
366
|
+
|
|
367
|
+
{{#if typeSame}}
|
|
368
|
+
<div class="tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id="compare-examples-{{../../article.id}}-{{index}}">
|
|
369
|
+
<pre class="prettyprint language-{{source.type}}" data-type="{{source.type}}"><code>{{{showDiff source.content compare.content}}}</code></pre>
|
|
370
|
+
</div>
|
|
371
|
+
{{/if}}
|
|
372
|
+
|
|
373
|
+
{{#if typeIns}}
|
|
374
|
+
<div class="tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id="compare-examples-{{../../article.id}}-{{index}}">
|
|
375
|
+
<pre class="prettyprint language-{{source.type}}" data-type="{{source.type}}"><code>{{{source.content}}}</code></pre>
|
|
376
|
+
</div>
|
|
377
|
+
{{/if}}
|
|
378
|
+
|
|
379
|
+
{{#if typeDel}}
|
|
380
|
+
<div class="tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id="compare-examples-{{../../article.id}}-{{index}}">
|
|
381
|
+
<pre class="prettyprint language-{{source.type}}" data-type="{{compare.type}}"><code>{{{compare.content}}}</code></pre>
|
|
382
|
+
</div>
|
|
383
|
+
{{/if}}
|
|
384
|
+
|
|
385
|
+
{{/each_compare_title}}
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
{{subTemplate "article-compare-param-block" source=article.parameter compare=compare.parameter _hasType=_hasTypeInParameterFields section="parameter"}}
|
|
389
|
+
{{subTemplate "article-compare-param-block" source=article.success compare=compare.success _hasType=_hasTypeInSuccessFields section="success"}}
|
|
390
|
+
{{subTemplate "article-compare-param-block" source=article.error compare=compare.error _col1="Name" _hasType=_hasTypeInErrorFields section="error"}}
|
|
391
|
+
|
|
392
|
+
{{subTemplate "article-sample-request" article=article id=id}}
|
|
393
|
+
|
|
394
|
+
</article>
|
|
395
|
+
</script>
|
|
396
|
+
|
|
397
|
+
<script id="template-article-compare-permission" type="text/x-handlebars-template">
|
|
398
|
+
{{#each_compare_list_field article.permission compare.permission field="name"}}
|
|
399
|
+
{{#if source}}
|
|
400
|
+
{{#if typeSame}}
|
|
401
|
+
{{source.name}}
|
|
402
|
+
{{#if source.title}}
|
|
403
|
+
<a href="#" data-toggle="popover" data-placement="right" data-html="true" data-content="{{nl2br source.description}}" title="" data-original-title="{{source.title}}"><span class="label label-info"><i class="icon icon-info-sign icon-white"></i></span></a>
|
|
404
|
+
{{#unless _last}}, {{/unless}}
|
|
405
|
+
{{/if}}
|
|
406
|
+
{{/if}}
|
|
407
|
+
|
|
408
|
+
{{#if typeIns}}
|
|
409
|
+
<ins>{{source.name}}</ins>
|
|
410
|
+
{{#if source.title}}
|
|
411
|
+
<a href="#" data-toggle="popover" data-placement="right" data-html="true" data-content="{{nl2br source.description}}" title="" data-original-title="{{source.title}}"><span class="label label-info"><i class="icon icon-info-sign icon-white"></i></span></a>
|
|
412
|
+
{{#unless _last}}, {{/unless}}
|
|
413
|
+
{{/if}}
|
|
414
|
+
{{/if}}
|
|
415
|
+
|
|
416
|
+
{{#if typeDel}}
|
|
417
|
+
<del>{{source.name}}</del>
|
|
418
|
+
{{#if source.title}}
|
|
419
|
+
<a href="#" data-toggle="popover" data-placement="right" data-html="true" data-content="{{nl2br source.description}}" title="" data-original-title="{{source.title}}"><span class="label label-info"><i class="icon icon-info-sign icon-white"></i></span></a>
|
|
420
|
+
{{#unless _last}}, {{/unless}}
|
|
421
|
+
{{/if}}
|
|
422
|
+
{{/if}}
|
|
423
|
+
{{else}}
|
|
424
|
+
{{#if typeSame}}
|
|
425
|
+
{{compare.name}}
|
|
426
|
+
{{#if compare.title}}
|
|
427
|
+
<a href="#" data-toggle="popover" data-placement="right" data-html="true" data-content="{{nl2br compare.description}}" title="" data-original-title="{{compare.title}}"><span class="label label-info"><i class="icon icon-info-sign icon-white"></i></span></a>
|
|
428
|
+
{{#unless _last}}, {{/unless}}
|
|
429
|
+
{{/if}}
|
|
430
|
+
{{/if}}
|
|
431
|
+
|
|
432
|
+
{{#if typeIns}}
|
|
433
|
+
<ins>{{compare.name}}</ins>
|
|
434
|
+
{{#if compare.title}}
|
|
435
|
+
<a href="#" data-toggle="popover" data-placement="right" data-html="true" data-content="{{nl2br compare.description}}" title="" data-original-title="{{compare.title}}"><span class="label label-info"><i class="icon icon-info-sign icon-white"></i></span></a>
|
|
436
|
+
{{#unless _last}}, {{/unless}}
|
|
437
|
+
{{/if}}
|
|
438
|
+
{{/if}}
|
|
439
|
+
|
|
440
|
+
{{#if typeDel}}
|
|
441
|
+
<del>{{compare.name}}</del>
|
|
442
|
+
{{#if compare.title}}
|
|
443
|
+
<a href="#" data-toggle="popover" data-placement="right" data-html="true" data-content="{{nl2br compare.description}}" title="" data-original-title="{{compare.title}}"><span class="label label-info"><i class="icon icon-info-sign icon-white"></i></span></a>
|
|
444
|
+
{{#unless _last}}, {{/unless}}
|
|
445
|
+
{{/if}}
|
|
446
|
+
{{/if}}
|
|
447
|
+
{{/if}}
|
|
448
|
+
{{/each_compare_list_field}}
|
|
449
|
+
</script>
|
|
450
|
+
|
|
451
|
+
<script id="template-article-compare-param-block" type="text/x-handlebars-template">
|
|
452
|
+
{{#if source}}
|
|
453
|
+
{{#each_compare_keys source.fields compare.fields}}
|
|
454
|
+
{{#if typeSame}}
|
|
455
|
+
<h2>{{__ source.key}}</h2>
|
|
456
|
+
<table>
|
|
457
|
+
<thead>
|
|
458
|
+
<tr>
|
|
459
|
+
<th style="width: 30%">{{#if _col1}}{{__ _col1}}{{else}}{{__ "Field"}}{{/if}}</th>
|
|
460
|
+
{{#if ../../_hasType}}<th style="width: 10%">{{__ "Type"}}</th>{{/if}}
|
|
461
|
+
<th style="width: {{#if _hasType}}60%{{else}}70%{{/if}}">{{__ "Description"}}</th>
|
|
462
|
+
</tr>
|
|
463
|
+
</thead>
|
|
464
|
+
{{subTemplate "article-compare-param-block-body" source=source.value compare=compare.value _hasType=../../_hasType}}
|
|
465
|
+
</table>
|
|
466
|
+
{{/if}}
|
|
467
|
+
|
|
468
|
+
{{#if typeIns}}
|
|
469
|
+
<h2><ins>{{__ source.key}}</ins></h2>
|
|
470
|
+
<table class="ins">
|
|
471
|
+
<thead>
|
|
472
|
+
<tr>
|
|
473
|
+
<th style="width: 30%">{{#if _col1}}{{__ _col1}}{{else}}{{__ "Field"}}{{/if}}</th>
|
|
474
|
+
{{#if ../../_hasType}}<th style="width: 10%">{{__ "Type"}}</th>{{/if}}
|
|
475
|
+
<th style="width: {{#if _hasType}}60%{{else}}70%{{/if}}">{{__ "Description"}}</th>
|
|
476
|
+
</tr>
|
|
477
|
+
</thead>
|
|
478
|
+
{{subTemplate "article-compare-param-block-body" source=source.value compare=source.value _hasType=../../_hasType}}
|
|
479
|
+
</table>
|
|
480
|
+
{{/if}}
|
|
481
|
+
|
|
482
|
+
{{#if typeDel}}
|
|
483
|
+
<h2><del>{{__ compare.key}}</del></h2>
|
|
484
|
+
<table class="del">
|
|
485
|
+
<thead>
|
|
486
|
+
<tr>
|
|
487
|
+
<th style="width: 30%">{{#if _col1}}{{__ _col1}}{{else}}{{__ "Field"}}{{/if}}</th>
|
|
488
|
+
{{#if ../../_hasType}}<th style="width: 10%">{{__ "Type"}}</th>{{/if}}
|
|
489
|
+
<th style="width: {{#if _hasType}}60%{{else}}70%{{/if}}">{{__ "Description"}}</th>
|
|
490
|
+
</tr>
|
|
491
|
+
</thead>
|
|
492
|
+
{{subTemplate "article-compare-param-block-body" source=compare.value compare=compare.value _hasType=../../_hasType}}
|
|
493
|
+
</table>
|
|
494
|
+
{{/if}}
|
|
495
|
+
{{/each_compare_keys}}
|
|
496
|
+
|
|
497
|
+
<ul class="nav nav-tabs nav-tabs-examples">
|
|
498
|
+
{{#each_compare_title source.examples compare.examples}}
|
|
499
|
+
|
|
500
|
+
{{#if typeSame}}
|
|
501
|
+
<li{{#if_eq index compare=0}} class="active"{{/if_eq}}>
|
|
502
|
+
<a href="#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}">{{{showDiff source.title compare.title}}}</a>
|
|
503
|
+
</li>
|
|
504
|
+
{{/if}}
|
|
505
|
+
|
|
506
|
+
{{#if typeIns}}
|
|
507
|
+
<li{{#if_eq index compare=0}} class="active"{{/if_eq}}>
|
|
508
|
+
<a href="#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}"><ins>{{{source.title}}}</ins></a>
|
|
509
|
+
</li>
|
|
510
|
+
{{/if}}
|
|
511
|
+
|
|
512
|
+
{{#if typeDel}}
|
|
513
|
+
<li{{#if_eq index compare=0}} class="active"{{/if_eq}}>
|
|
514
|
+
<a href="#{{../../section}}-compare-examples-{{../../article.id}}-{{index}}"><del>{{{compare.title}}}</del></a>
|
|
515
|
+
</li>
|
|
516
|
+
{{/if}}
|
|
517
|
+
|
|
518
|
+
{{/each_compare_title}}
|
|
519
|
+
</ul>
|
|
520
|
+
|
|
521
|
+
<div class="tab-content">
|
|
522
|
+
{{#each_compare_title source.examples compare.examples}}
|
|
523
|
+
|
|
524
|
+
{{#if typeSame}}
|
|
525
|
+
<div class="tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id="{{../../section}}-compare-examples-{{../../article.id}}-{{index}}">
|
|
526
|
+
<pre class="prettyprint language-{{source.type}}" data-type="{{source.type}}"><code>{{{showDiff source.content compare.content}}}</code></pre>
|
|
527
|
+
</div>
|
|
528
|
+
{{/if}}
|
|
529
|
+
|
|
530
|
+
{{#if typeIns}}
|
|
531
|
+
<div class="tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id="{{../../section}}-compare-examples-{{../../article.id}}-{{index}}">
|
|
532
|
+
<pre class="prettyprint language-{{source.type}}" data-type="{{source.type}}"><code>{{{source.content}}}</code></pre>
|
|
533
|
+
</div>
|
|
534
|
+
{{/if}}
|
|
535
|
+
|
|
536
|
+
{{#if typeDel}}
|
|
537
|
+
<div class="tab-pane{{#if_eq index compare=0}} active{{/if_eq}}" id="{{../../section}}-compare-examples-{{../../article.id}}-{{index}}">
|
|
538
|
+
<pre class="prettyprint language-{{source.type}}" data-type="{{compare.type}}"><code>{{{compare.content}}}</code></pre>
|
|
539
|
+
</div>
|
|
540
|
+
{{/if}}
|
|
541
|
+
|
|
542
|
+
{{/each_compare_title}}
|
|
543
|
+
</div>
|
|
544
|
+
|
|
545
|
+
{{/if}}
|
|
546
|
+
</script>
|
|
547
|
+
|
|
548
|
+
<script id="template-article-compare-param-block-body" type="text/x-handlebars-template">
|
|
549
|
+
<tbody>
|
|
550
|
+
{{#each_compare_field source compare}}
|
|
551
|
+
{{#if typeSame}}
|
|
552
|
+
<tr>
|
|
553
|
+
<td class="code">
|
|
554
|
+
{{{splitFill source.field "." " "}}}
|
|
555
|
+
{{#if source.optional}}
|
|
556
|
+
{{#if compare.optional}} <span class="label label-optional">{{__ "optional"}}</span>
|
|
557
|
+
{{else}} <span class="label label-optional label-ins">{{__ "optional"}}</span>
|
|
558
|
+
{{/if}}
|
|
559
|
+
{{else}}
|
|
560
|
+
{{#if compare.optional}} <span class="label label-optional label-del">{{__ "optional"}}</span>{{/if}}
|
|
561
|
+
{{/if}}
|
|
562
|
+
</td>
|
|
563
|
+
|
|
564
|
+
{{#if source.type}}
|
|
565
|
+
{{#if compare.type}}
|
|
566
|
+
<td>{{{showDiff source.type compare.type}}}</td>
|
|
567
|
+
{{else}}
|
|
568
|
+
<td>{{{source.type}}}</td>
|
|
569
|
+
{{/if}}
|
|
570
|
+
{{else}}
|
|
571
|
+
{{#if compare.type}}
|
|
572
|
+
<td>{{{compare.type}}}</td>
|
|
573
|
+
{{else}}
|
|
574
|
+
{{#if ../../../../_hasType}}<td></td>{{/if}}
|
|
575
|
+
{{/if}}
|
|
576
|
+
{{/if}}
|
|
577
|
+
<td>
|
|
578
|
+
{{{showDiff source.description compare.description "nl2br"}}}
|
|
579
|
+
{{#if source.defaultValue}}<p class="default-value">{{__ "Default value:"}} <code>{{{showDiff source.defaultValue compare.defaultValue}}}</code><p>{{/if}}
|
|
580
|
+
</td>
|
|
581
|
+
</tr>
|
|
582
|
+
{{/if}}
|
|
583
|
+
|
|
584
|
+
{{#if typeIns}}
|
|
585
|
+
<tr class="ins">
|
|
586
|
+
<td class="code">
|
|
587
|
+
{{{splitFill source.field "." " "}}}
|
|
588
|
+
{{#if source.optional}} <span class="label label-optional label-ins">{{__ "optional"}}</span>{{/if}}
|
|
589
|
+
</td>
|
|
590
|
+
|
|
591
|
+
{{#if source.type}}
|
|
592
|
+
<td>{{{source.type}}}</td>
|
|
593
|
+
{{else}}
|
|
594
|
+
{{{typRowTd}}}
|
|
595
|
+
{{/if}}
|
|
596
|
+
|
|
597
|
+
<td>
|
|
598
|
+
{{{nl2br source.description}}}
|
|
599
|
+
{{#if source.defaultValue}}<p class="default-value">{{__ "Default value:"}} <code>{{{source.defaultValue}}}</code><p>{{/if}}
|
|
600
|
+
</td>
|
|
601
|
+
</tr>
|
|
602
|
+
{{/if}}
|
|
603
|
+
|
|
604
|
+
{{#if typeDel}}
|
|
605
|
+
<tr class="del">
|
|
606
|
+
<td class="code">
|
|
607
|
+
{{{splitFill compare.field "." " "}}}
|
|
608
|
+
{{#if compare.optional}} <span class="label label-optional label-del">{{__ "optional"}}</span>{{/if}}
|
|
609
|
+
</td>
|
|
610
|
+
|
|
611
|
+
{{#if compare.type}}
|
|
612
|
+
<td>{{{compare.type}}}</td>
|
|
613
|
+
{{else}}
|
|
614
|
+
{{{typRowTd}}}
|
|
615
|
+
{{/if}}
|
|
616
|
+
|
|
617
|
+
<td>
|
|
618
|
+
{{{nl2br compare.description}}}
|
|
619
|
+
{{#if compare.defaultValue}}<p class="default-value">{{__ "Default value:"}} <code>{{{compare.defaultValue}}}</code><p>{{/if}}
|
|
620
|
+
</td>
|
|
621
|
+
</tr>
|
|
622
|
+
{{/if}}
|
|
623
|
+
|
|
624
|
+
{{/each_compare_field}}
|
|
625
|
+
</tbody>
|
|
626
|
+
</script>
|
|
627
|
+
|
|
628
|
+
<div class="container-fluid">
|
|
629
|
+
<div class="row-fluid">
|
|
630
|
+
<div id="sidenav" class="span2"></div>
|
|
631
|
+
<div id="content">
|
|
632
|
+
<div id="project"></div>
|
|
633
|
+
<div id="header"></div>
|
|
634
|
+
<div id="sections"></div>
|
|
635
|
+
<div id="footer"></div>
|
|
636
|
+
<div id="generator"></div>
|
|
637
|
+
</div>
|
|
638
|
+
</div>
|
|
639
|
+
</div>
|
|
640
|
+
|
|
641
|
+
<div id="loader">
|
|
642
|
+
<div class="spinner">
|
|
643
|
+
<div class="spinner-container container1">
|
|
644
|
+
<div class="circle1"></div><div class="circle2"></div><div class="circle3"></div><div class="circle4"></div>
|
|
645
|
+
</div>
|
|
646
|
+
<div class="spinner-container container2">
|
|
647
|
+
<div class="circle1"></div><div class="circle2"></div><div class="circle3"></div><div class="circle4"></div>
|
|
648
|
+
</div>
|
|
649
|
+
<div class="spinner-container container3">
|
|
650
|
+
<div class="circle1"></div><div class="circle2"></div><div class="circle3"></div><div class="circle4"></div>
|
|
651
|
+
</div>
|
|
652
|
+
<p>Loading...</p>
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
|
|
656
|
+
<script data-main="main.js" src="vendor/require.min.js"></script>
|
|
657
|
+
</body>
|
|
658
|
+
</html>
|