aboutsummaryrefslogtreecommitdiffstats
path: root/git.sr.ht
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-12-03 09:43:03 -0500
committerDrew DeVault <sir@cmpwn.com>2020-12-03 09:52:42 -0500
commitb29bc24d3354366d3e00e69ae3b490c528c94bfd (patch)
tree26d43173769627c7b9c2bd5ef52b000691c49530 /git.sr.ht
parent84b00d4cd0e79c5dce919206d323119092e7f93a (diff)
downloadsr.ht-docs-b29bc24d3354366d3e00e69ae3b490c528c94bfd.tar.gz
Add initial GraphQL documentation
Diffstat (limited to 'git.sr.ht')
-rw-r--r--git.sr.ht/api.md3
-rw-r--r--git.sr.ht/graphql.md14
2 files changed, 17 insertions, 0 deletions
diff --git a/git.sr.ht/api.md b/git.sr.ht/api.md
index f8c2233..c542054 100644
--- a/git.sr.ht/api.md
+++ b/git.sr.ht/api.md
@@ -2,6 +2,9 @@
title: git.sr.ht API reference
---
+**NOTICE**: This is the documentation for the legacy REST API. It is being
+replaced with the [GraphQL API](graphql.md).
+
The git.sr.ht API allows you to browse, create, and manage repositories on
git.sr.ht programmatically. This API follows the [standard sourcehut API
conventions](/api-conventions.md).
diff --git a/git.sr.ht/graphql.md b/git.sr.ht/graphql.md
new file mode 100644
index 0000000..3d43cb2
--- /dev/null
+++ b/git.sr.ht/graphql.md
@@ -0,0 +1,14 @@
+---
+title: git.sr.ht's GraphQL API
+toc: false
+---
+
+**NOTICE**: This is the documentation for git.sr.ht's new GraphQL API. For
+information on the legacy REST API, see [api.md](api.md).
+
+git.sr.ht's GraphQL API is compatible with the standard [SourceHut GraphQL API
+conventions](/graphql.md).
+
+See also:
+
+- [git.sr.ht GraphQL playground](https://git.sr.ht/graphql)