Skip to content

rest.gists

Octokit exposes these methods on octokit.rest.gists. The last column lists defaults and decorations applied by the SDK.

Catalogue and sources

Method Upstream route Pagination SDK behavior
checkIsStarred GET /gists/{gist_id}/star — —
create POST /gists — —
createComment POST /gists/{gist_id}/comments — —
delete DELETE /gists/{gist_id} — —
deleteComment DELETE /gists/{gist_id}/comments/{comment_id} — —
fork POST /gists/{gist_id}/forks — —
get GET /gists/{gist_id} — —
getComment GET /gists/{gist_id}/comments/{comment_id} — —
getRevision GET /gists/{gist_id}/{sha} — —
list GET /gists yes —
listComments GET /gists/{gist_id}/comments yes —
listCommits GET /gists/{gist_id}/commits yes —
listForUser GET /users/{username}/gists yes —
listForks GET /gists/{gist_id}/forks yes —
listPublic GET /gists/public yes —
listStarred GET /gists/starred yes —
star PUT /gists/{gist_id}/star — —
unstar DELETE /gists/{gist_id}/star — —
update PATCH /gists/{gist_id} — —
updateComment PATCH /gists/{gist_id}/comments/{comment_id} — —