Name Repo -> FetchCount -> GenRequest ('MtPreview Inertia) k (Vector Project)
+repoProjectsForR user repo =
+ PagedQuery ["repos", toPathPart user, toPathPart repo, "projects"] []
+
+
+orgProjectsForR :: Name Owner -> FetchCount -> GenRequest ( 'MtPreview Inertia) k (Vector Project)
+orgProjectsForR user =
+ PagedQuery ["orgs", toPathPart user, "projects"] []
+
+
+projectColumnsForR :: (Id Project) -> FetchCount -> GenRequest ( 'MtPreview Inertia) k (Vector Column)
+projectColumnsForR project_id =
+ PagedQuery ["projects", toPathPart project_id, "columns"] []
+
+
+columnCardsForR :: (Id Column) -> FetchCount -> GenRequest ( 'MtPreview Inertia) k (Vector Card)
+columnCardsForR column_id =
+ PagedQuery ["projects", "columns", toPathPart column_id, "cards"] []
diff --git a/src/GitHub/Request.hs b/src/GitHub/Request.hs
index 808f33a7..886645cf 100644
--- a/src/GitHub/Request.hs
+++ b/src/GitHub/Request.hs
@@ -68,6 +68,10 @@ module GitHub.Request (
-- They change accordingly, to make use of the library simpler.
withOpenSSL,
tlsManagerSettings,
+
+
+ -- preview types
+ Inertia
) where
import GitHub.Internal.Prelude
@@ -386,6 +390,16 @@ instance PreviewAccept p => Accept ('MtPreview p) where
instance PreviewParseResponse p a => ParseResponse ('MtPreview p) a where
parseResponse = previewParseResponse
+
+data Inertia
+
+instance PreviewAccept Inertia where
+ previewContentType = Tagged "application/vnd.github.inertia-preview+json"
+
+instance FromJSON a => PreviewParseResponse Inertia a where
+ previewParseResponse _ res = Tagged (parseResponseJSON res)
+
+
-------------------------------------------------------------------------------
-- Status
-------------------------------------------------------------------------------
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy