From 891e3b9d2431cb5089923eacafb1ba4a851b4f4b Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Wed, 30 May 2012 16:30:57 -0700 Subject: [PATCH] Support JSON pretty printing --- changelog.html | 2 ++ core/pom.xml | 2 +- .../main/resources/hudson/model/Api/index.jelly | 16 ++++++++++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/changelog.html b/changelog.html index 3a998336d1..f41b83bf11 100644 --- a/changelog.html +++ b/changelog.html @@ -70,6 +70,8 @@ Upcoming changes
  • Added a new extension point for custom checkout behaviour, especially targeted for matrix projects. (pull 482) +
  • + REST API now supports pretty printing of JSON and other formats.
  • Allow the tree parameter and the xpath parameter to be used together in the REST API. diff --git a/core/pom.xml b/core/pom.xml index 67e2e21dc3..ae6bdc5494 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -42,7 +42,7 @@ THE SOFTWARE. true - 1.190 + 1.191 diff --git a/core/src/main/resources/hudson/model/Api/index.jelly b/core/src/main/resources/hudson/model/Api/index.jelly index 2ca5b63f6e..5aca02b46e 100644 --- a/core/src/main/resources/hudson/model/Api/index.jelly +++ b/core/src/main/resources/hudson/model/Api/index.jelly @@ -65,14 +65,14 @@ THE SOFTWARE.

    -
    JSON API
    +
    JSON API
    Access the same data as JSON for JavaScript-based access. Supports JSONP through the optional jsonp=callbackname query parameter.
    -
    Python API
    +
    Python API

    Access the same data as Python for Python clients. This can be parsed into Python @@ -87,6 +87,18 @@ THE SOFTWARE. ast.literal_eval(urllib.urlopen("...").read())

    + +

    -- GitLab