Apply same format for rest api docs

This commit is contained in:
Mina Lee 2016-06-04 20:15:59 -07:00
parent 5875066a1e
commit 4202208b33
3 changed files with 197 additions and 246 deletions

View file

@ -20,29 +20,23 @@ limitations under the License.
{% include JB/setup %}
## Zeppelin REST API
Zeppelin provides several REST API's for interaction and remote activation of zeppelin functionality.
Zeppelin provides several REST APIs for interaction and remote activation of zeppelin functionality.
All REST API are available starting with the following endpoint ```http://[zeppelin-server]:[zeppelin-port]/api```
All REST APIs are available starting with the following endpoint `http://[zeppelin-server]:[zeppelin-port]/api`. Note that zeppelin REST APIs receive or return JSON objects, it is recommended for you to install some JSON viewers such as [JSONView](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc).
Note that Zeppelin REST API receive or return JSON objects, it it recommended you install some JSON viewers such as
[JSONView](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc)
If you work with zeppelin and find a need for an additional REST API please [file an issue or send us mail](../../community.html)
If you work with Zeppelin and find a need for an additional REST API, please [file an issue or send us mail](../../community.html).
<br />
### Configuration REST API list
## Configuration REST API list
### List Configurations
<table class="table-configuration">
<col width="200">
<tr>
<th>List configurations</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method return all key/value pair of configurations on the server.<br/>
Note: For security reason, some pairs would not be shown.</td>
Note: For security reason, some pairs would not be shown.</td>
</tr>
<tr>
<td>URL</td>
@ -61,48 +55,43 @@ limitations under the License.
</td>
<td>
<pre>
{
"status":"OK",
"message":"",
"body":{
"zeppelin.war.tempdir":"webapps",
"zeppelin.notebook.homescreen.hide":"false",
"zeppelin.interpreter.remoterunner":"bin/interpreter.sh",
"zeppelin.notebook.s3.user":"user",
"zeppelin.server.port":"8089",
"zeppelin.dep.localrepo":"local-repo",
"zeppelin.ssl.truststore.type":"JKS",
"zeppelin.ssl.keystore.path":"keystore",
"zeppelin.notebook.s3.bucket":"zeppelin",
"zeppelin.server.addr":"0.0.0.0",
"zeppelin.ssl.client.auth":"false",
"zeppelin.server.context.path":"/",
"zeppelin.ssl.keystore.type":"JKS",
"zeppelin.ssl.truststore.path":"truststore",
"zeppelin.interpreters":"org.apache.zeppelin.spark.SparkInterpreter,org.apache.zeppelin.spark.PySparkInterpreter,org.apache.zeppelin.spark.SparkRInterpreter,org.apache.zeppelin.spark.SparkSqlInterpreter,org.apache.zeppelin.spark.DepInterpreter,org.apache.zeppelin.markdown.Markdown,org.apache.zeppelin.angular.AngularInterpreter,org.apache.zeppelin.shell.ShellInterpreter,org.apache.zeppelin.hive.HiveInterpreter,org.apache.zeppelin.tajo.TajoInterpreter,org.apache.zeppelin.flink.FlinkInterpreter,org.apache.zeppelin.lens.LensInterpreter,org.apache.zeppelin.ignite.IgniteInterpreter,org.apache.zeppelin.ignite.IgniteSqlInterpreter,org.apache.zeppelin.cassandra.CassandraInterpreter,org.apache.zeppelin.geode.GeodeOqlInterpreter,org.apache.zeppelin.postgresql.PostgreSqlInterpreter,org.apache.zeppelin.phoenix.PhoenixInterpreter,org.apache.zeppelin.kylin.KylinInterpreter,org.apache.zeppelin.elasticsearch.ElasticsearchInterpreter,org.apache.zeppelin.scalding.ScaldingInterpreter",
"zeppelin.ssl":"false",
"zeppelin.notebook.autoInterpreterBinding":"true",
"zeppelin.notebook.homescreen":"",
"zeppelin.notebook.storage":"org.apache.zeppelin.notebook.repo.VFSNotebookRepo",
"zeppelin.interpreter.connect.timeout":"30000",
"zeppelin.anonymous.allowed":"true",
"zeppelin.server.allowed.origins":"*",
"zeppelin.encoding":"UTF-8"
}
}
</pre>
</td>
{
"status": "OK",
"message": "",
"body": {
"zeppelin.war.tempdir": "webapps",
"zeppelin.notebook.homescreen.hide": "false",
"zeppelin.interpreter.remoterunner": "bin/interpreter.sh",
"zeppelin.notebook.s3.user": "user",
"zeppelin.server.port": "8089",
"zeppelin.dep.localrepo": "local-repo",
"zeppelin.ssl.truststore.type": "JKS",
"zeppelin.ssl.keystore.path": "keystore",
"zeppelin.notebook.s3.bucket": "zeppelin",
"zeppelin.server.addr": "0.0.0.0",
"zeppelin.ssl.client.auth": "false",
"zeppelin.server.context.path": "/",
"zeppelin.ssl.keystore.type": "JKS",
"zeppelin.ssl.truststore.path": "truststore",
"zeppelin.interpreters": "org.apache.zeppelin.spark.SparkInterpreter,org.apache.zeppelin.spark.PySparkInterpreter,org.apache.zeppelin.spark.SparkRInterpreter,org.apache.zeppelin.spark.SparkSqlInterpreter,org.apache.zeppelin.spark.DepInterpreter,org.apache.zeppelin.markdown.Markdown,org.apache.zeppelin.angular.AngularInterpreter,org.apache.zeppelin.shell.ShellInterpreter,org.apache.zeppelin.hive.HiveInterpreter,org.apache.zeppelin.tajo.TajoInterpreter,org.apache.zeppelin.flink.FlinkInterpreter,org.apache.zeppelin.lens.LensInterpreter,org.apache.zeppelin.ignite.IgniteInterpreter,org.apache.zeppelin.ignite.IgniteSqlInterpreter,org.apache.zeppelin.cassandra.CassandraInterpreter,org.apache.zeppelin.geode.GeodeOqlInterpreter,org.apache.zeppelin.postgresql.PostgreSqlInterpreter,org.apache.zeppelin.phoenix.PhoenixInterpreter,org.apache.zeppelin.kylin.KylinInterpreter,org.apache.zeppelin.elasticsearch.ElasticsearchInterpreter,org.apache.zeppelin.scalding.ScaldingInterpreter",
"zeppelin.ssl": "false",
"zeppelin.notebook.autoInterpreterBinding": "true",
"zeppelin.notebook.homescreen": "",
"zeppelin.notebook.storage": "org.apache.zeppelin.notebook.repo.VFSNotebookRepo",
"zeppelin.interpreter.connect.timeout": "30000",
"zeppelin.anonymous.allowed": "true",
"zeppelin.server.allowed.origins":"*",
"zeppelin.encoding": "UTF-8"
}
}</pre></td>
</tr>
</table>
<br/>
### List Configurations(prefix match)
<table class="table-configuration">
<col width="200">
<tr>
<th>List configurations (prefix match)</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method return all prefix matched key/value pair of configurations on the server.<br/>
@ -123,21 +112,19 @@ limitations under the License.
<tr>
<td> sample JSON response
</td>
<td>
<pre>
{
"status":"OK",
"message":"",
"body":{
"zeppelin.ssl.keystore.type":"JKS",
"zeppelin.ssl.truststore.path":"truststore",
"zeppelin.ssl.truststore.type":"JKS",
"zeppelin.ssl.keystore.path":"keystore",
"zeppelin.ssl":"false",
"zeppelin.ssl.client.auth":"false"
}
}
</pre>
<td><pre>
{
"status": "OK",
"message": "",
"body": {
"zeppelin.ssl.keystore.type": "JKS",
"zeppelin.ssl.truststore.path": "truststore",
"zeppelin.ssl.truststore.type": "JKS",
"zeppelin.ssl.keystore.path": "keystore",
"zeppelin.ssl": "false",
"zeppelin.ssl.client.auth": "false"
}
}</pre>
</td>
</tr>
</table>

View file

@ -20,27 +20,21 @@ limitations under the License.
{% include JB/setup %}
## Zeppelin REST API
Zeppelin provides several REST API's for interaction and remote activation of zeppelin functionality.
Zeppelin provides several REST APIs for interaction and remote activation of zeppelin functionality.
All REST API are available starting with the following endpoint `http://[zeppelin-server]:[zeppelin-port]/api`.
Note that Zeppelin REST API receive or return JSON objects, it it recommended you install some JSON viewers such as
[JSON View](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc).
All REST APIs are available starting with the following endpoint `http://[zeppelin-server]:[zeppelin-port]/api`. Note that zeppelin REST APIs receive or return JSON objects, it is recommended for you to install some JSON viewers such as [JSONView](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc).
If you work with zeppelin and find a need for an additional REST API, please [file an issue or send us mail](http://zeppelin.apache.org/community.html).
If you work with Zeppelin and find a need for an additional REST API, please [file an issue or send us mail](http://zeppelin.apache.org/community.html).
<br />
## Interpreter REST API List
The role of registered interpreters, settings and interpreters group are described in [here](../manual/interpreters.html).
### 1. List of Registered Interpreters & Interpreter Settings
### List of Registered Interpreters
<table class="table-configuration">
<col width="200">
<tr>
<th>List of registered interpreters</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method returns all the registered interpreters available on the server.</td>
@ -109,12 +103,9 @@ limitations under the License.
<br/>
### List of Interpreter Settings
<table class="table-configuration">
<col width="200">
<tr>
<th>List of interpreters settings</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method returns all the interpreters settings registered on the server.</td>
@ -186,14 +177,10 @@ limitations under the License.
</table>
<br/>
### 2. Create an Interpreter Setting
### Create an Interpreter Setting
<table class="table-configuration">
<col width="200">
<tr>
<th>Create an interpreter setting</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method adds a new interpreter setting using a registered interpreter to the server.</td>
@ -272,13 +259,9 @@ limitations under the License.
<br/>
### 3. Update an Interpreter Setting
### Update an Interpreter Setting
<table class="table-configuration">
<col width="200">
<tr>
<th>Update an interpreter setting</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```PUT``` method updates an interpreter setting with new properties.</td>
@ -356,14 +339,10 @@ limitations under the License.
<br/>
### 4. Delete an Interpreter Setting
### Delete an Interpreter Setting
<table class="table-configuration">
<col width="200">
<tr>
<th>Delete an interpreter setting</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```DELETE``` method deletes an given interpreter setting.</td>
@ -390,14 +369,10 @@ limitations under the License.
<br/>
### 5. Restart an Interpreter
### Restart an Interpreter
<table class="table-configuration">
<col width="200">
<tr>
<th>Restart an interpreter</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```PUT``` method restarts the given interpreter id.</td>
@ -423,14 +398,10 @@ limitations under the License.
</table>
<br/>
### 6. Add repository for dependency resolving
### Add repository for dependency resolving
<table class="table-configuration">
<col width="200">
<tr>
<th>Add new repository for dependency loader</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method adds new repository.</td>
@ -468,14 +439,10 @@ limitations under the License.
</table>
<br/>
### 7. Delete repository for dependency resolving
### Delete repository for dependency resolving
<table class="table-configuration">
<col width="200">
<tr>
<th>Delete repository for dependency loader</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```DELETE``` method delete repository with given id.</td>

View file

@ -22,25 +22,19 @@ limitations under the License.
## Zeppelin REST API
Zeppelin provides several REST APIs for interaction and remote activation of zeppelin functionality.
All REST APIs are available starting with the following endpoint ```http://[zeppelin-server]:[zeppelin-port]/api```
All REST APIs are available starting with the following endpoint `http://[zeppelin-server]:[zeppelin-port]/api`. Note that zeppelin REST APIs receive or return JSON objects, it is recommended for you to install some JSON viewers such as [JSONView](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc).
Note that zeppelin REST APIs receive or return JSON objects, it is recommended for you to install some JSON viewers
such as [JSONView](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc)
If you work with Zeppelin and find a need for an additional REST API, please [file an issue or send us mail](../../community.html).
<br />
If you work with zeppelin and find a need for an additional REST API please [file an issue or send us mail](../../community.html)
## Notebook REST API List
<br />
### Notebook REST API list
Notebooks REST API supports the following operations: List, Create, Get, Delete, Clone, Run, Export, Import as detailed in the following table
Notebooks REST API supports the following operations: List, Create, Get, Delete, Clone, Run, Export, Import as detailed in the following tables.
### List Notebooks
<table class="table-configuration">
<col width="200">
<tr>
<th>List notebooks</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method lists the available notebooks on your server.
@ -61,18 +55,29 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK","message":"","body":[{"name":"Homepage","id":"2AV4WUEMK"},{"name":"Zeppelin Tutorial","id":"2A94M5J1Z"}]}</pre></td>
<td><pre>
{
"status": "OK",
"message": "",
"body": [
{
"name":"Homepage",
"id":"2AV4WUEMK"
},
{
"name":"Zeppelin Tutorial",
"id":"2A94M5J1Z"
}
]
}</pre></td>
</tr>
</table>
<br/>
### Create Notebook
<table class="table-configuration">
<col width="200">
<tr>
<th>Create notebook</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method creates a new notebook using the given name or default name if none given.
@ -93,7 +98,7 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON input (without paragraphs) </td>
<td><pre>{ "name": "name of new notebook" }</pre></td>
<td><pre>{"name": "name of new notebook"}</pre></td>
</tr>
<tr>
<td> sample JSON input (with initial paragraphs) </td>
@ -110,23 +115,24 @@ limitations under the License.
"text": "paragraph text2"
}
]
}
</pre></td>
}</pre></td>
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status": "CREATED","message": "","body": "2AZPHY918"}</pre></td>
<td><pre>
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}</pre></td>
</tr>
</table>
<br/>
### Get Notebook
<table class="table-configuration">
<col width="200">
<tr>
<th>Get notebook</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method retrieves an existing notebook's information using the given id.
@ -194,8 +200,8 @@ limitations under the License.
"params": {},
"forms": {}
},
"jobName": "paragraph_1423500782552_-1439281894",
"id": "20150210-015302_1492795503",
"jobName": "paragraph\_1423500782552\_-1439281894",
"id": "20150210-015302\_1492795503",
"result": {
"code": "SUCCESS",
"type": "TABLE",
@ -216,19 +222,15 @@ limitations under the License.
},
"info": {}
}
}
</pre></td>
}</pre></td>
</tr>
</table>
<br/>
### Delete Notebook
<table class="table-configuration">
<col width="200">
<tr>
<th>Delete notebook</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```DELETE``` method deletes a notebook by the given notebook id.
@ -248,18 +250,15 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK","message":""}</pre></td>
<td><pre>{"status": "OK","message": ""}</pre></td>
</tr>
</table>
<br/>
### Clone Notebook
<table class="table-configuration">
<col width="200">
<tr>
<th>Clone notebook</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method clones a notebook by the given id and create a new notebook using the given name
@ -285,18 +284,20 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status": "CREATED","message": "","body": "2AZPHY918"}</pre></td>
<td><pre>
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}</pre></td>
</tr>
</table>
<br/>
### Run Notebook Job
<table class="table-configuration">
<col width="200">
<tr>
<th>Run notebook job</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method runs all paragraph in the given notebook id.
@ -316,18 +317,15 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK"}</pre></td>
<td><pre>{"status": "OK"}</pre></td>
</tr>
</table>
<br/>
### Stop Notebook Job
<table class="table-configuration">
<col width="200">
<tr>
<th>Stop notebook job</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```DELETE``` method stops all paragraph in the given notebook id.
@ -353,14 +351,9 @@ limitations under the License.
<br/>
<br/>
### Get Notebook Job
<table class="table-configuration">
<col width="200">
<tr>
<th>Get notebook job</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method gets all paragraph status by the given notebook id.
@ -381,18 +374,33 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK","body":[{"id":"20151121-212654_766735423","status":"FINISHED","finished":"Tue Nov 24 14:21:40 KST 2015","started":"Tue Nov 24 14:21:39 KST 2015"},{"progress":"1","id":"20151121-212657_730976687","status":"RUNNING","finished":"Tue Nov 24 14:21:35 KST 2015","started":"Tue Nov 24 14:21:40 KST 2015"}]}</pre></td>
<td><pre>
{
"status": "OK",
"body": [
{
"id":"20151121-212654\_766735423",
"status":"FINISHED",
"finished":"Tue Nov 24 14:21:40 KST 2015",
"started":"Tue Nov 24 14:21:39 KST 2015"
},
{
"progress":"1",
"id":"20151121-212657\_730976687",
"status":"RUNNING",
"finished":"Tue Nov 24 14:21:35 KST 2015",
"started":"Tue Nov 24 14:21:40 KST 2015"
}
]
}</pre></td>
</tr>
</table>
<br/>
### Run Paragraph Job
<table class="table-configuration">
<col width="200">
<tr>
<th>Run paragraph job</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method runs the paragraph by given notebook and paragraph id.
@ -419,23 +427,19 @@ limitations under the License.
"formLabel1": "value1",
"formLabel2": "value2"
}
}
</pre></td>
}</pre></td>
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK"}</pre></td>
<td><pre>{"status": "OK"}</pre></td>
</tr>
</table>
<br/>
### Stop Paragraph Job
<table class="table-configuration">
<col width="200">
<tr>
<th>Stop paragraph job</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```DELETE``` method stops the paragraph by given notebook and paragraph id.
@ -455,18 +459,15 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK"}</pre></td>
<td><pre>{"status": "OK"}</pre></td>
</tr>
</table>
<br/>
### Add Cron Job
<table class="table-configuration">
<col width="200">
<tr>
<th>Add cron job</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method adds cron job by the given notebook id.
@ -490,18 +491,15 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK"}</pre></td>
<td><pre>{"status": "OK"}</pre></td>
</tr>
</table>
<br/>
### Remove Cron Job
<table class="table-configuration">
<col width="200">
<tr>
<th>Remove cron job</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```DELETE``` method removes cron job by the given notebook id.
@ -521,18 +519,15 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK"}</pre></td>
<td><pre>{"status": "OK"}</pre></td>
</tr>
</table>
<br/>
### Get Cron Job
<table class="table-configuration">
<col width="200">
<tr>
<th>Get cron job</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method gets cron job expression of given notebook id.
@ -553,16 +548,15 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK","body":"* * * * * ?"}</pre></td>
<td><pre>{"status": "OK", "body": "* * * * * ?"}</pre></td>
</tr>
</table>
<br />
### Full Text Search Through the Paragraphs in All Notebooks
<table class="table-configuration">
<col width="200">
<tr>
<th>Full-text search through the paragraphs in all notebooks</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>```GET``` request will return list of matching paragraphs
@ -582,19 +576,26 @@ limitations under the License.
</tr>
<tr>
<td>Sample JSON response </td>
<td><pre>{"status":"OK", body: [{"id":"<noteId>/paragraph/<paragraphId>", "name":"Notebook Name", "snippet":"", "text":""}]}</pre></td>
<td><pre>
{
"status": "OK",
"body": [
{
"id": "<noteId>/paragraph/<paragraphId>",
"name":"Notebook Name",
"snippet":"",
"text":""
}
]
}</pre></td>
</tr>
</table>
<br/>
### Create Paragraph
<table class="table-configuration">
<col width="200">
<tr>
<th>Create paragraph</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method create a new paragraph using JSON payload.
@ -616,35 +617,36 @@ limitations under the License.
<tr>
<td> sample JSON input (add to the last) </td>
<td><pre>
{
"title": "Paragraph insert revised",
"text": "%spark\nprintln(\"Paragraph insert revised\")"
}</pre></td>
{
"title": "Paragraph insert revised",
"text": "%spark\nprintln(\"Paragraph insert revised\")"
}</pre></td>
</tr>
<tr>
<td> sample JSON input (add to specific index) </td>
<td><pre>
{
"title": "Paragraph insert revised",
"text": "%spark\nprintln(\"Paragraph insert revised\")",
"index": 0
}
</pre></td>
{
"title": "Paragraph insert revised",
"text": "%spark\nprintln(\"Paragraph insert revised\")",
"index": 0
}</pre></td>
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status": "CREATED","message": "","body": "20151218-100330_1754029574"}</pre></td>
<td><pre>
{
"status": "CREATED",
"message": "",
"body": "20151218-100330\_1754029574"
}</pre></td>
</tr>
</table>
<br/>
### Get Paragraph
<table class="table-configuration">
<col width="200">
<tr>
<th>Get paragraph</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method retrieves an existing paragraph's information using the given id.
@ -692,8 +694,8 @@ limitations under the License.
"params": {},
"forms": {}
},
"jobName": "paragraph_1450391574392_-1890856722",
"id": "20151218-073254_1105602047",
"jobName": "paragraph\_1450391574392\_-1890856722",
"id": "20151218-073254\_1105602047",
"result": {
"code": "SUCCESS",
"type": "TEXT",
@ -705,19 +707,15 @@ limitations under the License.
"status": "FINISHED",
"progressUpdateIntervalMs": 500
}
}
</pre></td>
}</pre></td>
</tr>
</table>
<br/>
### Move Paragraph
<table class="table-configuration">
<col width="200">
<tr>
<th>Move paragraph</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method moves a paragraph to the specific index (order) from the notebook.
@ -737,19 +735,16 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK","message":""}</pre></td>
<td><pre>{"status": "OK","message": ""}</pre></td>
</tr>
</table>
<br/>
### Delete Paragraph
<table class="table-configuration">
<col width="200">
<tr>
<th>Delete paragraph</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```DELETE``` method deletes a paragraph by the given notebook and paragraph id.
@ -769,18 +764,15 @@ limitations under the License.
</tr>
<tr>
<td> sample JSON response </td>
<td><pre>{"status":"OK","message":""}</pre></td>
<td><pre>{"status": "OK","message": ""}</pre></td>
</tr>
</table>
<br />
### Export Notebook
<table class="table-configuration">
<col width="200">
<tr>
<th>Export notebook</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```GET``` method exports a notebook by the given id and gernerates a JSON
@ -811,8 +803,8 @@ limitations under the License.
"params": {},
"forms": {}
},
"jobName": "paragraph_1452300578795_1196072540",
"id": "20160108-164938_1685162144",
"jobName": "paragraph\_1452300578795\_1196072540",
"id": "20160108-164938\_1685162144",
"dateCreated": "Jan 8, 2016 4:49:38 PM",
"status": "READY",
"progressUpdateIntervalMs": 500
@ -827,12 +819,11 @@ limitations under the License.
</tr>
</table>
<br />
### Import Notebook
<table class="table-configuration">
<col width="200">
<tr>
<th>Export notebook</th>
<th></th>
</tr>
<tr>
<td>Description</td>
<td>This ```POST``` method imports a notebook from the notebook JSON input
@ -850,8 +841,9 @@ limitations under the License.
<td> Fail code</td>
<td> 500 </td>
</tr>
<td> sample JSON input </td>
<td><pre>{
<td>sample JSON input</td>
<td><pre>
{
"paragraphs": [
{
"text": "%md This is my new paragraph in my new note",
@ -863,8 +855,8 @@ limitations under the License.
"params": {},
"forms": {}
},
"jobName": "paragraph_1452300578795_1196072540",
"id": "20160108-164938_1685162144",
"jobName": "paragraph\_1452300578795\_1196072540",
"id": "20160108-164938\_1685162144",
"dateCreated": "Jan 8, 2016 4:49:38 PM",
"status": "READY",
"progressUpdateIntervalMs": 500
@ -876,9 +868,14 @@ limitations under the License.
"config": {},
"info": {}
}</pre></td>
<tr>
<td> sample JSON response </td>
<td><pre>"status": "CREATED","message": "","body": "2AZPHY918"}</pre></td>
<tr>
<td>sample JSON response</td>
<td><pre>
{
"status": "CREATED",
"message": "",
"body": "2AZPHY918"
}</pre></td>
</tr>
</tr>
</table>