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

Appearance settings

Commit 9fd50eb

Browse filesBrowse files
committed
update the gist comment url
1 parent 0f80ab6 commit 9fd50eb
Copy full SHA for 9fd50eb

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎content/v3/gists/comments.md‎

Copy file name to clipboardExpand all lines: content/v3/gists/comments.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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

Collapse file

‎lib/resources.rb‎

Copy file name to clipboardExpand all lines: lib/resources.rb
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.