Browse Source

Fixed formatting in stackbrew/README.md

Joffrey F 12 years ago
parent
commit
3ecd273099
1 changed files with 43 additions and 40 deletions
  1. 43 40
      stackbrew/README.md

+ 43 - 40
stackbrew/README.md

@@ -15,56 +15,59 @@ A small JSON API allows users to check the status of past builds.
 
 * `GET /summary` or `GET /status`
 
-    GET /summary
 
-    {
-        "build_date": "2013-10-04 18:08:45.685881", 
-        "id": 16, 
-        "result": true
-    }
+        GET /summary
+
+        {
+            "build_date": "2013-10-04 18:08:45.685881", 
+            "id": 16, 
+            "result": true
+        }
 
 ### Summary details
 
 * `GET /summary/<summary_id>`
 
-    GET /summary/16
 
-    [
-        {
-            "commit_id": "7362ff5b812f93eceafbdbf5e5959f676f731f80", 
-            "exception": null, 
-            "source_desc": "git://github.com/dotcloud/hipache@C:7362ff5b812f93eceafbdbf5e5959f676f731f80",
-            "image_id": "5d313f0ec5af",
-            "tag": "0.2.4",
-            "summary_id": 16,
-            "id": 1,
-            "repo_name": "hipache"
-        }, {
-            "commit_id": "7362ff5b812f93eceafbdbf5e5959f676f731f80",
-            "exception": null,
-            "source_desc": "git://github.com/dotcloud/hipache@C:7362ff5b812f93eceafbdbf5e5959f676f731f80",
-            "image_id": "5d313f0ec5af",
-            "tag": "latest",
-            "summary_id": 16,
-            "id": 2,
-            "repo_name": "hipache"
-        }, ...
-    ]
+        GET /summary/16
+
+        [
+            {
+                "commit_id": "7362ff5b812f93eceafbdbf5e5959f676f731f80", 
+                "exception": null, 
+                "source_desc": "git://github.com/dotcloud/hipache@C:7362ff5b812f93eceafbdbf5e5959f676f731f80",
+                "image_id": "5d313f0ec5af",
+                "tag": "0.2.4",
+                "summary_id": 16,
+                "id": 1,
+                "repo_name": "hipache"
+            }, {
+                "commit_id": "7362ff5b812f93eceafbdbf5e5959f676f731f80",
+                "exception": null,
+                "source_desc": "git://github.com/dotcloud/hipache@C:7362ff5b812f93eceafbdbf5e5959f676f731f80",
+                "image_id": "5d313f0ec5af",
+                "tag": "latest",
+                "summary_id": 16,
+                "id": 2,
+                "repo_name": "hipache"
+            }, ...
+        ]
 
 ### Latest successful build
 
 * `GET /success/<repo_name>?tag=<tag>`
 * `tag` parameter is optional, defaults to `latest`
 
-    GET /success/ubuntu?tag=12.10
-
-    {
-        "commit_id": "abd58c43ceec4d4a21622a1e3d45f676fe912e745d31",
-        "exception": null,
-        "source_desc": "git://github.com/dotcloud/ubuntu-quantal@B:master",
-        "image_id": "d462fecc33e1",
-        "tag": "12.10",
-        "summary_id": 17,
-        "id": 19,
-        "repo_name": "ubuntu"
-    }
+
+        GET /success/ubuntu?tag=12.10
+
+        {
+            "commit_id": "abd58c43ceec4d4a21622a1e3d45f676fe912e745d31",
+            "exception": null,
+            "source_desc": "git://github.com/dotcloud/ubuntu-quantal@B:master",
+            "image_id": "d462fecc33e1",
+            "tag": "12.10",
+            "summary_id": 17,
+            "id": 19,
+            "repo_name": "ubuntu"
+        }