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

Commit9fd50eb

Browse files
committed
update the gist comment url
1 parent0f80ab6 commit9fd50eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎content/v3/gists/comments.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You can read more about the use of mime types in the API
2222

2323
##Get a single comment
2424

25-
GET /gists/comments/:id
25+
GET /gists/:gist_id/comments/:id
2626

2727
###Response
2828

@@ -48,7 +48,7 @@ body
4848

4949
##Edit a comment
5050

51-
PATCH /gists/comments/:id
51+
PATCH /gists/:gist_id/comments/:id
5252

5353
###Input
5454

@@ -64,7 +64,7 @@ body
6464

6565
##Delete a comment
6666

67-
DELETE /gists/comments/:id
67+
DELETE /gists/:gist_id/comments/:id
6868

6969
###Response
7070

‎lib/resources.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ def text_html(response, status, head = {})
725725

726726
GIST_COMMENT={
727727
"id"=>1,
728-
"url"=>"https://api.github.com/gists/comments/1",
728+
"url"=>"https://api.github.com/gists/123/comments/1",
729729
"body"=>"Just commenting for the sake of commenting",
730730
"user"=>USER,
731731
"created_at"=>"2011-04-18T23:23:56Z"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp