zeppelin/docs/rest-api
Remilito 89a1c53f24 [ZEPPELIN-2106] providing paragraph config in create note/paragraph rest call
### 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:

0994ac0 [Remilito] [ZEPPELIN-2106]: keeping only the API providing the whole config
76af44a [Remilito] [ZEPPELIN-2106] providing paragraph config in create note/paragraph call * Allow to describe graph, colWidth, showTitle or full paragraph config directly in the Create Paragraph and Create Note endpoint. * Updated doc.
2017-03-21 11:13:46 -07:00
..
rest-configuration.md [ZEPPELIN-2003] Remove PostgresqlInterpreter 2017-02-02 15:54:19 +09:00
rest-credential.md [ZEPPELIN-1219] Add searching feature to Zeppelin docs site 2016-08-10 12:39:22 +09:00
rest-helium.md [DOCS][ZEPPELIN-2140] Add docs for notebookRepo REST API 2017-02-28 13:02:02 +09:00
rest-interpreter.md [ZEPPELIN-1869] changed the API response to generate to 200. 2017-01-19 22:22:26 -08:00
rest-notebook.md [ZEPPELIN-2106] providing paragraph config in create note/paragraph rest call 2017-03-21 11:13:46 -07:00
rest-notebookRepo.md [DOCS][ZEPPELIN-2140] Add docs for notebookRepo REST API 2017-02-28 13:02:02 +09:00