mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
### What is this PR for? * Allow to provide full paragraph config directly in the Create Paragraph and Create Note endpoint. * This saves some calls to [noteId]/paragraph/[paragraphId]/config * Updated doc. ### What type of PR is it? Improvement ### Todos ### What is the Jira issue? [ZEPPELIN-2106](https://issues.apache.org/jira/browse/ZEPPELIN-2106) ### How should this be tested? Outline the steps to test the PR here. 1. Clone the first paragraph of 'Zeppelin Tutorial/Basic Features (Spark)' to get the bank data loaded in a new note. 2. curl -X POST -d testAPI.json http://localhost:8080/api/notebook/$YOURNOTEID/paragraph 3. When running the paragraphes, the graphs will show up with the appropriate settings. testAPI.json: `{ "title":"Example providing config", "text":"%sql\nselect age, marital, count(1) cvalue from bank group by age, marital order by age", "config": { "title":true, "colWidth":6.0, "results": [ { "graph": { "mode": "scatterChart", "optionOpen": true } } ] }, "colWidth":9.0 } ` ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Remilito <remy.gayet@gmail.com> Closes #2099 from Remilito/ZEPPELIN-2106b and squashes the following commits: |
||
|---|---|---|
| .. | ||
| rest-configuration.md | ||
| rest-credential.md | ||
| rest-helium.md | ||
| rest-interpreter.md | ||
| rest-notebook.md | ||
| rest-notebookRepo.md | ||