Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit8e6f0b0

Browse files
committed
Add documentation on getting a revision of a gist
1 parent31f812f commit8e6f0b0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

‎content/v3/gists.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ Name | Type | Description
6060
<%= headers 200 %>
6161
<%= json:full_gist %>
6262

63+
##Get a specific revision of a gist
64+
65+
GET /gists/:id/:sha
66+
67+
###Response
68+
69+
<%= headers 200 %>
70+
<%= json:gist_revision %>
71+
6372
##Create a gist
6473

6574
POST /gists

‎lib/resources.rb‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,10 @@ def fetch_content(key)
14161416
"updated_at"=>"2011-04-18T23:23:56Z"
14171417
}
14181418

1419+
GIST_REVISION ||=GIST.update \
1420+
"owner"=>USER,
1421+
"forks"=>GIST_FORKS
1422+
14191423
TREE ||={
14201424
"sha"=>"9fb037999f264ba9a7fc6274d15fa3ae2ab98312",
14211425
"url"=>"https://api.github.com/repos/octocat/Hello-World/trees/9fb037999f264ba9a7fc6274d15fa3ae2ab98312",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp