This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Move blob response to resources

  • Loading branch information...
1 parent 5bfb6ba commit 82e1b57a44aacde00adc00efc2c8641596ff1159 @pengwynn pengwynn committed Jul 26, 2012
Showing with 8 additions and 5 deletions.
  1. +1 −5 content/v3/git/blobs.md
  2. +7 −0 lib/resources.rb
View
@@ -19,11 +19,7 @@ read more about the use of mime types in the API [here](/v3/mime/).
### Response
<%= headers 200 %>
-<%= json
- :content => "Content of the blob",
- :encoding => "utf-8",
- :sha => "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15",
- :size => 100 %>
+<%= json(:blob) %>
## Create a Blob
View
@@ -871,6 +871,13 @@ def text_html(response, status, head = {})
"content" => "encoded content ...",
"sha" => "3d21ec53a331a6f037a91c368710b99387d012c1"
}
+
+ BLOB = {
+ :content => "Content of the blob",
+ :encoding => "utf-8",
+ :sha => "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15",
+ :size => 100
+ }
end
end

0 comments on commit 82e1b57

Please sign in to comment.