Permalink
Browse files

fix minor code block formatting issues

  • Loading branch information...
1 parent fc51642 commit 570e021be6b8d652e561c81bf0bde51059877d73 @mapleoin committed Sep 21, 2012
Showing with 7 additions and 6 deletions.
  1. +4 −3 popcorn/templates/api.html
  2. +3 −3 popcorn/templates/distro_doc.html
@@ -23,8 +23,9 @@ <h4>Warning!</h4> The API is currently unstable and may change
Aside from the submission receiving API function, all other API requests are HTTP GET requests which return JSON documents. You need to explicitly specify that you want a JSON document in your request's headers. e.g.
-pre. curl --header "Accept: application/json" http://popcorn.opensuse.org/distro/openSUSE_12.1
-{
+pre. $ curl --header "Accept: application/json" http://popcorn.opensuse.org/distro/openSUSE_12.1
+
+pre. {
"distro": {
"submissions": [
{
@@ -46,7 +47,7 @@ <h4>Warning!</h4> The API is currently unstable and may change
],
"distro_name": "openSUSE",
"distro_version": "12.1"
- }
+}
h3. Errors
@@ -48,9 +48,9 @@ <h4>Submissions for each distribution version</h4>
h4. Response
-pre. HTTP/1.0 200 OK
- Content-Type: application/json
- Content-Length: 517
+pre. HTTP/1.0 200 OK
+Content-Type: application/json
+Content-Length: 517
pre(pre-scrollable). {
"distro": {

0 comments on commit 570e021

Please sign in to comment.