提交 891e3b9d 编写于 作者: K Kohsuke Kawaguchi

Support JSON pretty printing

上级 013cfc27
...@@ -70,6 +70,8 @@ Upcoming changes</a> ...@@ -70,6 +70,8 @@ Upcoming changes</a>
<li class=rfe> <li class=rfe>
Added a new extension point for custom checkout behaviour, especially targeted for matrix projects. Added a new extension point for custom checkout behaviour, especially targeted for matrix projects.
(<a href="https://github.com/jenkinsci/jenkins/pull/482">pull 482</a>) (<a href="https://github.com/jenkinsci/jenkins/pull/482">pull 482</a>)
<li class=rfe>
REST API now supports pretty printing of JSON and other formats.
<li class=rfe> <li class=rfe>
Allow the tree parameter and the xpath parameter to be used together in the REST API. Allow the tree parameter and the xpath parameter to be used together in the REST API.
</ul> </ul>
......
...@@ -42,7 +42,7 @@ THE SOFTWARE. ...@@ -42,7 +42,7 @@ THE SOFTWARE.
<properties> <properties>
<staplerFork>true</staplerFork> <staplerFork>true</staplerFork>
<stapler.version>1.190</stapler.version> <stapler.version>1.191</stapler.version>
</properties> </properties>
<dependencies> <dependencies>
......
...@@ -65,14 +65,14 @@ THE SOFTWARE. ...@@ -65,14 +65,14 @@ THE SOFTWARE.
</p> </p>
</dd> </dd>
<dt><a href="json">JSON API</a></dt> <dt><a href="json?pretty=true">JSON API</a></dt>
<dd> <dd>
Access the same data as JSON for JavaScript-based access. Supports Access the same data as JSON for JavaScript-based access. Supports
<a href="http://ajaxian.com/archives/jsonp-json-with-padding">JSONP</a> through <a href="http://ajaxian.com/archives/jsonp-json-with-padding">JSONP</a> through
the optional <tt>jsonp=<i>callbackname</i></tt> query parameter. the optional <tt>jsonp=<i>callbackname</i></tt> query parameter.
</dd> </dd>
<dt><a href="python">Python API</a></dt> <dt><a href="python?pretty=true">Python API</a></dt>
<dd> <dd>
<p> <p>
Access the same data as Python for Python clients. This can be parsed into Python Access the same data as Python for Python clients. This can be parsed into Python
...@@ -87,6 +87,18 @@ THE SOFTWARE. ...@@ -87,6 +87,18 @@ THE SOFTWARE.
<tt>ast.literal_eval(urllib.urlopen("...").read())</tt> <tt>ast.literal_eval(urllib.urlopen("...").read())</tt>
</p> </p>
</dd> </dd>
<!--
<dt><a href="ruby?pretty=true">Ruby API</a></dt>
<dd>
<p>
Access the same data as Ruby literals that can be <tt>eval</tt>ed.
However, when you do this, beware of the security implication. If you are connecting
to a non-trusted Jenkins, the server can send you malicious Python programs.
</p>
</dd>
-->
</dl> </dl>
<p> <p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册