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

Commit76924ab

Browse files
author
Peter Williams
committed
update doc for changes to gist comment uris
1 parent0f80ab6 commit76924ab

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
kind:change
3+
title:Gist comment URIs
4+
created_at:2012-10-30
5+
author_name:pezra
6+
---
7+
8+
The URIs of all gist comments are changing immediately. The new URI pattern for gist comments is`/gists/{gist-id}/comments/{id}`. (See[gist comments section of the docs](/v3/gists/comments/) for more details.) This change is necessary because the auto-incremented id of gist comments is easy to guess. This predictability allows anyone to view comments on private Gists with relative ease. Obviously, comments on private gists should be just as private as the gist itself.
9+
10+
Adding the id of the gist id to the URI makes it impossible, in practical terms, because that id is a very large random number. This is, unfortunately, a breaking change but one that cannot be avoided because of the security implications of the current URIs. We apologize for the inconvenience.

‎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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp