You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rest-api/rest-interpreter.md
+35-38Lines changed: 35 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,28 +22,29 @@ limitations under the License.
22
22
## Zeppelin REST API
23
23
Zeppelin provides several REST API's for interaction and remote activation of zeppelin functionality.
24
24
25
-
All REST API are available starting with the following endpoint ```http://[zeppelin-server]:[zeppelin-port]/api```
26
-
25
+
All REST API are available starting with the following endpoint `http://[zeppelin-server]:[zeppelin-port]/api`.
27
26
Note that zeppein REST API receive or return JSON objects, it it recommended you install some JSON view such as
If you work with zeppelin and find a need for an additional REST API please [file an issue or send us mail](../../community.html)
30
+
If you work with zeppelin and find a need for an additional REST API, please [file an issue or send us mail](http://zeppelin.incubator.apache.org/community.html).
32
31
33
32
<br />
34
-
###Interpreter REST API list
33
+
## Interpreter REST API List
35
34
36
-
The role of registered interpreters, settings and interpreters group is described [here](../manual/interpreters.html)
35
+
The role of registered interpreters, settings and interpreters group are described in [here](../manual/interpreters.html).
37
36
37
+
### 1. List of Registered Interpreters & Interpreter Settings
38
+
38
39
<tableclass="table-configuration">
39
40
<col width="200">
40
41
<tr>
41
-
<th>List registered interpreters</th>
42
+
<th>List of registered interpreters</th>
42
43
<th></th>
43
44
</tr>
44
45
<tr>
45
46
<td>Description</td>
46
-
<td>This ```GET``` method return all the registered interpreters available on the server.</td>
47
+
<td>This ```GET``` method returns all the registered interpreters available on the server.</td>
47
48
</tr>
48
49
<tr>
49
50
<td>URL</td>
@@ -54,12 +55,11 @@ limitations under the License.
54
55
<td>200</td>
55
56
</tr>
56
57
<tr>
57
-
<td>Fail code</td>
58
+
<td>Fail code</td>
58
59
<td> 500 </td>
59
60
</tr>
60
61
<tr>
61
-
<td> sample JSON response
62
-
</td>
62
+
<td>Sample JSON response</td>
63
63
<td>
64
64
<pre>
65
65
{
@@ -113,12 +113,12 @@ limitations under the License.
113
113
<tableclass="table-configuration">
114
114
<col width="200">
115
115
<tr>
116
-
<th>List interpreters settings</th>
116
+
<th>List of interpreters settings</th>
117
117
<th></th>
118
118
</tr>
119
119
<tr>
120
120
<td>Description</td>
121
-
<td>This ```GET``` method return all the interpreters settings registered on the server.</td>
121
+
<td>This ```GET``` method returns all the interpreters settings registered on the server.</td>
122
122
</tr>
123
123
<tr>
124
124
<td>URL</td>
@@ -129,12 +129,11 @@ limitations under the License.
129
129
<td>200</td>
130
130
</tr>
131
131
<tr>
132
-
<td>Fail code</td>
132
+
<td>Fail code</td>
133
133
<td> 500 </td>
134
134
</tr>
135
135
<tr>
136
-
<td> sample JSON response
137
-
</td>
136
+
<td>Sample JSON response</td>
138
137
<td>
139
138
<pre>
140
139
{
@@ -182,7 +181,8 @@ limitations under the License.
182
181
</table>
183
182
184
183
<br/>
185
-
184
+
### 2. Create an Interpreter Setting
185
+
186
186
<tableclass="table-configuration">
187
187
<col width="200">
188
188
<tr>
@@ -202,12 +202,11 @@ limitations under the License.
202
202
<td>201</td>
203
203
</tr>
204
204
<tr>
205
-
<td>Fail code</td>
205
+
<td>Fail code</td>
206
206
<td> 500 </td>
207
207
</tr>
208
208
<tr>
209
-
<td> sample JSON input
210
-
</td>
209
+
<td>Sample JSON input</td>
211
210
<td>
212
211
<pre>
213
212
{
@@ -227,8 +226,7 @@ limitations under the License.
227
226
</td>
228
227
</tr>
229
228
<tr>
230
-
<td> sample JSON response
231
-
</td>
229
+
<td>Sample JSON response</td>
232
230
<td>
233
231
<pre>
234
232
{
@@ -256,7 +254,8 @@ limitations under the License.
256
254
257
255
258
256
<br/>
259
-
257
+
258
+
### 3. Update an Interpreter Setting
260
259
<tableclass="table-configuration">
261
260
<col width="200">
262
261
<tr>
@@ -276,12 +275,11 @@ limitations under the License.
276
275
<td>200</td>
277
276
</tr>
278
277
<tr>
279
-
<td>Fail code</td>
278
+
<td>Fail code</td>
280
279
<td> 500 </td>
281
280
</tr>
282
281
<tr>
283
-
<td> sample JSON input
284
-
</td>
282
+
<td>Sample JSON input</td>
285
283
<td>
286
284
<pre>
287
285
{
@@ -301,8 +299,7 @@ limitations under the License.
301
299
</td>
302
300
</tr>
303
301
<tr>
304
-
<td> sample JSON response
305
-
</td>
302
+
<td>Sample JSON response</td>
306
303
<td>
307
304
<pre>
308
305
{
@@ -330,7 +327,8 @@ limitations under the License.
330
327
331
328
332
329
<br/>
333
-
330
+
### 4. Delete an Interpreter Setting
331
+
334
332
<tableclass="table-configuration">
335
333
<col width="200">
336
334
<tr>
@@ -354,17 +352,17 @@ limitations under the License.
354
352
<td> 500 </td>
355
353
</tr>
356
354
<tr>
357
-
<td> sample JSON response
358
-
</td>
355
+
<td>Sample JSON response</td>
359
356
<td>
360
-
<pre>{"status":"OK"}</pre>
357
+
<code>{"status":"OK"}</code>
361
358
</td>
362
359
</tr>
363
360
</table>
364
361
365
362
366
363
<br/>
367
-
364
+
### 5. Restart an Interpreter
365
+
368
366
<tableclass="table-configuration">
369
367
<col width="200">
370
368
<tr>
@@ -373,7 +371,7 @@ limitations under the License.
373
371
</tr>
374
372
<tr>
375
373
<td>Description</td>
376
-
<td>This ```PUT``` method restart the given interpreter id.</td>
374
+
<td>This ```PUT``` method restarts the given interpreter id.</td>
377
375
</tr>
378
376
<tr>
379
377
<td>URL</td>
@@ -384,14 +382,13 @@ limitations under the License.
0 commit comments