aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/gists/comments.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/requests/gists/comments.py')
-rw-r--r--pygithub3/requests/gists/comments.py40
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}'