aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/gists/comments.py
blob: 8e5af15cd058fde9c8bb0afc6f08eed6650c78c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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}'