Apache Zeppelin 提供了多個REST APIs用於遠程功能交互操做。 全部的REST APIs 都經過 endpoint http://[zeppelin-server]:[zeppelin-port]/api
進行操做。注意,Apache Zeppelin 的REST APIs 都接受和返回 JSON 對象, 建議安裝 JSON viewers, 好比 JSONView。web
Description | This GET method returns all the available notebook repositories. |
URL | http://[zeppelin-server]:[zeppelin-port]/api/notebook-repositories |
Success code | 200 |
Fail code | 500 |
Sample JSON response | { "status": "OK", "message": "", "body": [ { "name": "GitNotebookRepo", "className": "org.apache.zeppelin.notebook.repo.GitNotebookRepo", "settings": [ { "type": "INPUT", "value": [], "selected": "ZEPPELIN_HOME/zeppelin/notebook/", "name": "Notebook Path" } ] } ] } |
Description | This GET method triggers reloading and broadcasting of the note list. |
URL | http://[zeppelin-server]:[zeppelin-port]/api/notebook-repositories/reload |
Success code | 200 |
Fail code | 500 |
Sample JSON response | { "status": "OK", "message": "" } |
Description | This PUT method updates a specific notebook repository. |
URL | http://[zeppelin-server]:[zeppelin-port]/api/notebook-repositories |
Success code | 200 |
Fail code | 404 when the specified notebook repository doesn't exist 406 for invalid payload 500 for any other errors |
Sample JSON input | { "name":"org.apache.zeppelin.notebook.repo.GitNotebookRepo", "settings":{ "Notebook Path":"/tmp/notebook/" } } |
Sample JSON response | { "status": "OK", "message": "", "body": { "name": "GitNotebookRepo", "className": "org.apache.zeppelin.notebook.repo.GitNotebookRepo", "settings": [ { "type": "INPUT", "value": [], "selected": "/tmp/notebook/", "name": "Notebook Path" } ] } } |