Skip to content

Commit

Permalink
[JENKINS-16877] Removing documentation about insecure access formats …
Browse files Browse the repository at this point in the history
…(primitive XPath & JSONP).
  • Loading branch information
jglick committed Mar 4, 2013
1 parent 0710b90 commit 1e6454a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions core/src/main/resources/hudson/model/Api/index.jelly
Expand Up @@ -42,10 +42,9 @@ THE SOFTWARE.

<p>
You can also specify optional XPath to control the fragment you'd like to obtain (but see <a href="#tree">below</a>).
For example, <tt>../api/xml?xpath=/*/*[0]</tt>. If the XPath only matches a text node,
the result will be sent with <tt>text/plain</tt> MIME type to simplify
further processing.

For example, <tt>../api/xml?xpath=/*/*[0]</tt>.
</p>
<p>
For XPath that matches multiple nodes, you need to also specify the "wrapper" query parameter
to specify the name of the root XML element to be create so that the resulting XML becomes well-formed.
</p>
Expand All @@ -67,9 +66,7 @@ THE SOFTWARE.

<dt><a href="json?pretty=true">JSON API</a></dt>
<dd>
Access the same data as JSON for JavaScript-based access. Supports
<a href="http://ajaxian.com/archives/jsonp-json-with-padding">JSONP</a> through
the optional <tt>jsonp=<i>callbackname</i></tt> query parameter.
Access the same data as JSON for JavaScript-based access. <tt>tree</tt> may be used.
</dd>

<dt><a href="python?pretty=true">Python API</a></dt>
Expand Down

0 comments on commit 1e6454a

Please sign in to comment.