Alexander Radzin created ZEPPELIN-3393:
------------------------------------------

             Summary: Export a notebook REST API returns wrapped wraps body
                 Key: ZEPPELIN-3393
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3393
             Project: Zeppelin
          Issue Type: Bug
            Reporter: Alexander Radzin


According to 
[documentation|https://zeppelin.apache.org/docs/0.7.2/rest-api/rest-notebook.html#export-a-notebook]
 REST API that exports note and looks like

[http://[zeppelin-server]:[zeppelin-port]/api/notebook/export/[noteId|http://[zeppelin-server][zeppelin-port]/]]
 

Should return output like:

{{{ }}

{{ "paragraphs": [...], }}

{{ "name": "THE NAME", }}

{{ "id": "111111111", }}

{{...}}}

 

In fact its output is wrapped by envelope 

{{{ "status": "OK", "message": "", "body": ...}}}

The body field is escaped and stored as a string. 

This behavior is not convenient since there is not simple way to export 
notebook and then import it again. 

 

The workaround that I found is using jq utility in order to extract and 
unescape the enclosed body as a standalone JSON. 

I am using Zeppelin 0.7.2. 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to