diff options
| author | 2012-04-03 19:06:02 +0200 | |
|---|---|---|
| committer | 2012-04-03 19:06:02 +0200 | |
| commit | 30033cb33d828d96492c429407977a9f7912bf28 (patch) | |
| tree | 4b2804b3cc2391f19325dbe302b95a0c98a87b65 /pygithub3/requests | |
| parent | services.gists.Gist done (diff) | |
| download | python-github3-30033cb33d828d96492c429407977a9f7912bf28.tar.xz python-github3-30033cb33d828d96492c429407977a9f7912bf28.zip | |
services.gists.Comment done
Diffstat (limited to 'pygithub3/requests')
| -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..32f01ec --- /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/1' |
