REST API documentation: Add missing spaces in JSON examples
Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Ie20cf24b494509d96efdfbb2c12ad572254d8e7f
This commit is contained in:
@@ -2585,30 +2585,30 @@ provided fetch info map is also included.
|
|||||||
|
|
||||||
)]}'
|
)]}'
|
||||||
{
|
{
|
||||||
"commit":{
|
"commit": {
|
||||||
"parents":[
|
"parents": [
|
||||||
{
|
{
|
||||||
"commit":"1eee2c9d8f352483781e772f35dc586a69ff5646",
|
"commit": "1eee2c9d8f352483781e772f35dc586a69ff5646",
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"author":{
|
"author": {
|
||||||
"name":"Shawn O. Pearce",
|
"name": "Shawn O. Pearce",
|
||||||
"email":"sop@google.com",
|
"email": "sop@google.com",
|
||||||
"date":"2012-04-24 18:08:08.000000000",
|
"date": "2012-04-24 18:08:08.000000000",
|
||||||
"tz":-420
|
"tz": -420
|
||||||
},
|
},
|
||||||
"committer":{
|
"committer": {
|
||||||
"name":"Shawn O. Pearce",
|
"name": "Shawn O. Pearce",
|
||||||
"email":"sop@google.com",
|
"email": "sop@google.com",
|
||||||
"date":"2012-04-24 18:08:08.000000000",
|
"date": "2012-04-24 18:08:08.000000000",
|
||||||
"tz":-420
|
"tz": -420
|
||||||
},
|
},
|
||||||
"subject":"Use an EventBus to manage star icons",
|
"subject": "Use an EventBus to manage star icons",
|
||||||
"message":"Use an EventBus to manage star icons\n\nImage widgets that need to ..."
|
"message": "Use an EventBus to manage star icons\n\nImage widgets that need to ..."
|
||||||
},
|
},
|
||||||
"base_patch_set_number":1,
|
"base_patch_set_number": 1,
|
||||||
"base_revision":"c35558e0925e6985c91f3a16921537d5e572b7a3",
|
"base_revision": "c35558e0925e6985c91f3a16921537d5e572b7a3",
|
||||||
"ref":"refs/users/01/1000001/edit-76482/1"
|
"ref": "refs/users/01/1000001/edit-76482/1"
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -2796,7 +2796,7 @@ returned.
|
|||||||
|
|
||||||
)]}'
|
)]}'
|
||||||
{
|
{
|
||||||
"web_links":[
|
"web_links": [
|
||||||
{
|
{
|
||||||
"show_on_side_by_side_diff_view": true,
|
"show_on_side_by_side_diff_view": true,
|
||||||
"name": "side-by-side preview diff",
|
"name": "side-by-side preview diff",
|
||||||
@@ -4819,30 +4819,30 @@ resulting change edit is returned.
|
|||||||
|
|
||||||
)]}'
|
)]}'
|
||||||
{
|
{
|
||||||
"commit":{
|
"commit": {
|
||||||
"parents":[
|
"parents": [
|
||||||
{
|
{
|
||||||
"commit":"1eee2c9d8f352483781e772f35dc586a69ff5646",
|
"commit": "1eee2c9d8f352483781e772f35dc586a69ff5646",
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"author":{
|
"author": {
|
||||||
"name":"John Doe",
|
"name": "John Doe",
|
||||||
"email":"john.doe@example.com",
|
"email": "john.doe@example.com",
|
||||||
"date":"2013-05-07 15:21:27.000000000",
|
"date": "2013-05-07 15:21:27.000000000",
|
||||||
"tz":120
|
"tz": 120
|
||||||
},
|
},
|
||||||
"committer":{
|
"committer": {
|
||||||
"name":"Jane Doe",
|
"name": "Jane Doe",
|
||||||
"email":"jane.doe@example.com",
|
"email": "jane.doe@example.com",
|
||||||
"date":"2013-05-07 15:35:43.000000000",
|
"date": "2013-05-07 15:35:43.000000000",
|
||||||
"tz":120
|
"tz": 120
|
||||||
},
|
},
|
||||||
"subject":"Implement feature X",
|
"subject": "Implement feature X",
|
||||||
"message":"Implement feature X\n\nWith this feature ..."
|
"message": "Implement feature X\n\nWith this feature ..."
|
||||||
},
|
},
|
||||||
"base_patch_set_number":1,
|
"base_patch_set_number": 1,
|
||||||
"base_revision":"674ac754f91e64a0efb8087e59a176484bd534d1"
|
"base_revision": "674ac754f91e64a0efb8087e59a176484bd534d1"
|
||||||
"ref":"refs/users/01/1000001/edit-42622/1"
|
"ref": "refs/users/01/1000001/edit-42622/1"
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@@ -288,11 +288,11 @@ GET /projects/?t HTTP/1.0
|
|||||||
},
|
},
|
||||||
"child-project": {
|
"child-project": {
|
||||||
"id": "child-project",
|
"id": "child-project",
|
||||||
"parent":"parent-project"
|
"parent": "parent-project"
|
||||||
},
|
},
|
||||||
"parent-project": {
|
"parent-project": {
|
||||||
"id": "parent-project",
|
"id": "parent-project",
|
||||||
"parent":"All-Projects"
|
"parent": "All-Projects"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
@@ -1271,14 +1271,14 @@ a link:#change-info[ChangeInfo] entity describing the resulting change.
|
|||||||
Content-Type: application/json; charset=UTF-8
|
Content-Type: application/json; charset=UTF-8
|
||||||
|
|
||||||
{
|
{
|
||||||
"add":{
|
"add": {
|
||||||
"refs/heads/*":{
|
"refs/heads/*": {
|
||||||
"permissions":{
|
"permissions": {
|
||||||
"read":{
|
"read": {
|
||||||
"rules":{
|
"rules": {
|
||||||
"global:Anonymous-Users": {
|
"global:Anonymous-Users": {
|
||||||
"action":"DENY",
|
"action": "DENY",
|
||||||
"force":false
|
"force": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user