import type { NavMenuConstant } from '@/components/Navigation/Navigation.types' export const apis: NavMenuConstant = { icon: 'rest', title: 'REST and GraphQL APIs', url: '/guides/api', items: [ { name: 'Data API (REST)', items: [ { name: 'Quickstart', url: '/guides/api/quickstart' }, { name: 'Client libraries', url: '/guides/api/rest/client-libs' }, { name: 'Security', items: [ { name: 'Securing your API', url: '/guides/api/securing-your-api' }, { name: 'Custom claims and RBAC', url: '/guides/api/custom-claims-and-role-based-access-control-rbac', }, ], }, { name: 'Tools', items: [ { name: 'Autogenerated documentation', url: '/guides/api/rest/auto-generated-docs' }, { name: 'SQL to REST API translator', url: '/guides/api/sql-to-rest' }, { name: 'SQL to JavaScript API', url: '/guides/api/sql-to-api' }, { name: 'Query plans with explain()', url: '/guides/api/query-plans', }, ], }, { name: 'Routes and schemas', items: [ { name: 'Creating API routes', url: '/guides/api/creating-routes' }, { name: 'Using custom schemas', url: '/guides/api/using-custom-schemas' }, ], }, { name: 'Error codes and handling', items: [ { name: 'Error codes', url: '/guides/api/rest/postgrest-error-codes' }, { name: 'supabase-js errors', url: '/guides/api/handling-errors-in-supabase-js', }, ], }, ], }, { name: 'GraphQL API', items: [ { name: 'Overview', url: '/guides/graphql' }, { name: 'API', url: '/guides/graphql/api' }, { name: 'Views', url: '/guides/graphql/views' }, { name: 'Functions', url: '/guides/graphql/functions' }, { name: 'Computed fields', url: '/guides/graphql/computed-fields' }, { name: 'Configure and customize', url: '/guides/graphql/configuration' }, { name: 'Security', url: '/guides/graphql/security' }, { name: 'Integrations', items: [ { name: 'With Apollo', url: '/guides/graphql/with-apollo' }, { name: 'With Relay', url: '/guides/graphql/with-relay' }, ], }, ], }, ], }