Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

stubs out a few different guides

Copple9173ab30c9ee
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index c8232e61e26..441c7ca2aab 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -556,7 +556,22 @@ export const api = {
url: '/guides/api',
items: [
{ name: 'Overview', url: '/guides/api', items: [] },
- { name: 'Generating Types', url: '/guides/api/generating-types', items: [] },
+ {
+ name: 'REST',
+ url: undefined,
+ items: [
+ { name: 'Client Libraries', url: '/guides/api/rest/client-libs', items: [] },
+ { name: 'Generating Types', url: '/guides/api/rest/generating-types', items: [] },
+ { name: 'Auto-generated Docs', url: '/guides/api/rest/auto-generated-docs', items: [] },
+ { name: 'Joins and Nested Tables', url: '/guides/api/rest/joins-and-nesting', items: [] },
+ { name: 'Caching', url: '/guides/api/rest/caching', items: [] },
+ ],
+ },
+ {
+ name: 'GRAPHQL',
+ url: undefined,
+ items: [{ name: 'GraphiQL', url: '/guides/api/graphql/graphiql', items: [] }],
+ },
],
}
diff --git a/apps/docs/pages/guides/api/graphql/graphiql.mdx b/apps/docs/pages/guides/api/graphql/graphiql.mdx
new file mode 100644
index 00000000000..9887e72278f
--- /dev/null
+++ b/apps/docs/pages/guides/api/graphql/graphiql.mdx
@@ -0,0 +1,14 @@
+import Layout from '~/layouts/DefaultGuideLayout'
+
+export const meta = {
+ id: 'graphiql',
+ title: 'GraphiQL documentation',
+ description: 'Some docs on graphiql.',
+ video: 'https://www.youtube.com/v/7CqlTU9aOR4',
+}
+
+GraphiQL
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page
diff --git a/apps/docs/pages/guides/api/rest/auto-generated-docs.mdx b/apps/docs/pages/guides/api/rest/auto-generated-docs.mdx
new file mode 100644
index 00000000000..bde5bb7bb21
--- /dev/null
+++ b/apps/docs/pages/guides/api/rest/auto-generated-docs.mdx
@@ -0,0 +1,14 @@
+import Layout from '~/layouts/DefaultGuideLayout'
+
+export const meta = {
+ id: 'auto-docs',
+ title: 'Auto-generated documentation',
+ description: 'Suapbase provides several client libraries for the REST interface.',
+ video: 'https://www.youtube.com/v/7CqlTU9aOR4',
+}
+
+A doc on the Client Libraries, how they are structured, and where to find the docs.
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page
diff --git a/apps/docs/pages/guides/api/rest/caching.mdx b/apps/docs/pages/guides/api/rest/caching.mdx
new file mode 100644
index 00000000000..fe437d7d961
--- /dev/null
+++ b/apps/docs/pages/guides/api/rest/caching.mdx
@@ -0,0 +1,16 @@
+import Layout from '~/layouts/DefaultGuideLayout'
+
+export const meta = {
+ id: 'joins-and-nested-tables',
+ title: 'Joins and Nested tables',
+ description: 'A description.',
+ video: 'https://www.youtube.com/v/7CqlTU9aOR4',
+}
+
+- Supabase cache helpers: https://github.com/psteinroe/supabase-cache-helpers
+- SWR
+- React Query
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page
diff --git a/apps/docs/pages/guides/api/rest/client-libs.mdx b/apps/docs/pages/guides/api/rest/client-libs.mdx
new file mode 100644
index 00000000000..0f5c374074d
--- /dev/null
+++ b/apps/docs/pages/guides/api/rest/client-libs.mdx
@@ -0,0 +1,14 @@
+import Layout from '~/layouts/DefaultGuideLayout'
+
+export const meta = {
+ id: 'client-libs',
+ title: 'Client Libraries',
+ description: 'Suapbase provides several client libraries for the REST interface.',
+ video: 'https://www.youtube.com/v/7CqlTU9aOR4',
+}
+
+A doc on the Client Libraries, how they are structured, and where to find the docs.
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page
diff --git a/apps/docs/pages/guides/api/generating-types.mdx b/apps/docs/pages/guides/api/rest/generating-types.mdx
similarity index 100%
rename from apps/docs/pages/guides/api/generating-types.mdx
rename to apps/docs/pages/guides/api/rest/generating-types.mdx
diff --git a/apps/docs/pages/guides/api/rest/joins-and-nesting.mdx b/apps/docs/pages/guides/api/rest/joins-and-nesting.mdx
new file mode 100644
index 00000000000..f0a3abc4c98
--- /dev/null
+++ b/apps/docs/pages/guides/api/rest/joins-and-nesting.mdx
@@ -0,0 +1,14 @@
+import Layout from '~/layouts/DefaultGuideLayout'
+
+export const meta = {
+ id: 'joins-and-nested-tables',
+ title: 'Joins and Nested tables',
+ description: 'A description.',
+ video: 'https://www.youtube.com/v/7CqlTU9aOR4',
+}
+
+Joins and nested tables.
+
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
+
+export default Page