Skip to content

Commit 82e1b57

Browse files
committed
Move blob response to resources
1 parent 5bfb6ba commit 82e1b57

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

content/v3/git/blobs.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ read more about the use of mime types in the API [here](/v3/mime/).
1919
### Response
2020

2121
<%= headers 200 %>
22-
<%= json
23-
:content => "Content of the blob",
24-
:encoding => "utf-8",
25-
:sha => "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15",
26-
:size => 100 %>
22+
<%= json(:blob) %>
2723

2824
## Create a Blob
2925

lib/resources.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,13 @@ def text_html(response, status, head = {})
871871
"content" => "encoded content ...",
872872
"sha" => "3d21ec53a331a6f037a91c368710b99387d012c1"
873873
}
874+
875+
BLOB = {
876+
:content => "Content of the blob",
877+
:encoding => "utf-8",
878+
:sha => "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15",
879+
:size => 100
880+
}
874881
end
875882
end
876883

0 commit comments

Comments
 (0)