Document how to get pretty-printed JSON for REST calls
Since change I2f1cb91e9 the returned JSON is always compacted which makes it hard to read for humans. Explain in the docs how to get pretty-printed JSON. Change-Id: Ia659eeb9a07277883ca8a725adfa7d8640ac50b9
This commit is contained in:
@@ -50,6 +50,11 @@ Example to set a Gerrit project's link:rest-api-projects.html#set-project-descri
|
||||
curl -X PUT --user john:2LlAB3K9B0PF --data-binary @project-desc.txt --header "Content-Type: application/json; charset=UTF-8" http://localhost:8080/a/projects/myproject/description
|
||||
----
|
||||
|
||||
[[pretty-json]]
|
||||
=== Pretty JSON
|
||||
|
||||
By default any JSON in responses is compacted. To get pretty-printed JSON add `pp=1` to the request.
|
||||
|
||||
=== Authentication
|
||||
|
||||
To test APIs that require authentication, the username and password must be specified on
|
||||
|
||||
Reference in New Issue
Block a user