diff options
author | 2012-04-04 00:07:50 +0200 | |
---|---|---|
committer | 2012-04-04 00:07:50 +0200 | |
commit | 3e551e6801a0031f1482ad5d9f30af9df78e9471 (patch) | |
tree | 9d28cc75691279ff75f079cd4e085e77241517af /pygithub3/requests/gists/comments.py | |
parent | :sparkles: Relase 0.2 :sparkles: (diff) | |
parent | Fix bug (diff) | |
download | python-github3-3e551e6801a0031f1482ad5d9f30af9df78e9471.tar.xz python-github3-3e551e6801a0031f1482ad5d9f30af9df78e9471.zip |
Gists service done
Diffstat (limited to 'pygithub3/requests/gists/comments.py')
-rw-r--r-- | pygithub3/requests/gists/comments.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pygithub3/requests/gists/comments.py b/pygithub3/requests/gists/comments.py new file mode 100644 index 0000000..8e5af15 --- /dev/null +++ b/pygithub3/requests/gists/comments.py @@ -0,0 +1,40 @@ +# -*- encoding: utf-8 -*- + +from pygithub3.requests.base import Request +from pygithub3.resources.gists import Comment + +class List(Request): + + uri = 'gists/{gist_id}/comments' + resource = Comment + + +class Get(Request): + + uri = 'gists/comments/{id}' + resource = Comment + + +class Create(Request): + + uri = 'gists/{gist_id}/comments' + resource = Comment + body_schema = { + 'schema': ('body', ), + 'required': ('body', ) + } + + +class Update(Request): + + uri = 'gists/comments/{id}' + resource = Comment + body_schema = { + 'schema': ('body', ), + 'required': ('body', ) + } + + +class Delete(Request): + + uri = 'gists/comments/{id}' |