module GitHub.Endpoints.Gists.Comments (
commentsOnR,
gistCommentR,
module GitHub.Data,
) where
import GitHub.Data
import GitHub.Internal.Prelude
import Prelude ()
commentsOnR :: Name Gist -> FetchCount -> Request k (Vector GistComment)
Name Gist
gid =
Paths
-> QueryString -> FetchCount -> Request k (Vector GistComment)
forall a (mt :: RW).
FromJSON a =>
Paths -> QueryString -> FetchCount -> Request mt (Vector a)
pagedQuery [Text
"gists", Name Gist -> Text
forall a. IsPathPart a => a -> Text
toPathPart Name Gist
gid, Text
"comments"] []
gistCommentR :: Id GistComment -> Request k GistComment
Id GistComment
cid =
Paths -> QueryString -> Request k GistComment
forall (mt :: RW) a. Paths -> QueryString -> Request mt a
query [Text
"gists", Text
"comments", Id GistComment -> Text
forall a. IsPathPart a => a -> Text
toPathPart Id GistComment
cid] []