From d556d1a73ef7e003ce360a7bab0fd2ab256e8386 Mon Sep 17 00:00:00 2001 From: Suriya Date: Wed, 20 May 2026 16:52:28 +0530 Subject: [PATCH] graphql --- src/components/Introduction.jsx | 6 +++--- src/components/Sidebar.jsx | 2 +- src/components/TopicView.jsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Introduction.jsx b/src/components/Introduction.jsx index c80e09e..09bbb31 100644 --- a/src/components/Introduction.jsx +++ b/src/components/Introduction.jsx @@ -38,7 +38,7 @@ export default function Introduction({ allLegacy, allRest, setActiveTopic }) {

Base URLs

-
Hasura API
+
GraphQL API
{LEGACY_BASE_URL}
@@ -74,7 +74,7 @@ export default function Introduction({ allLegacy, allRest, setActiveTopic }) { ? 'bg-brand-50 text-brand-600 border border-brand-100' : 'bg-indigo-50 text-indigo-600 border border-indigo-100' }`}> - {topic.type === 'legacy' ? 'Hasura' : 'REST'} + {topic.type === 'legacy' ? 'GraphQL' : 'REST'} {topic.endpoints.length} endpoint{topic.endpoints.length !== 1 ? 's' : ''}
@@ -90,7 +90,7 @@ export default function Introduction({ allLegacy, allRest, setActiveTopic }) {

- Explore interactive endpoints for both Hasura and REST APIs. All requests route through the dev proxy which injects authentication headers securely. + Explore interactive endpoints for both GraphQL and REST APIs. All requests route through the dev proxy which injects authentication headers securely.

diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index cbddfe4..75f634e 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -93,7 +93,7 @@ export default function Sidebar({ legacyTopics, restTopics, activeTopic, setActi
- {legacyTopics.length > 0 && renderTopicGroup(legacyTopics, 'Hasura API', 'legacy')} + {legacyTopics.length > 0 && renderTopicGroup(legacyTopics, 'GraphQL API', 'legacy')} {restTopics.length > 0 && renderTopicGroup(restTopics, 'REST API', 'rest')} diff --git a/src/components/TopicView.jsx b/src/components/TopicView.jsx index f838ab8..b6afd1d 100644 --- a/src/components/TopicView.jsx +++ b/src/components/TopicView.jsx @@ -5,7 +5,7 @@ import { getTopicIcon } from '../lib/icons' import { LEGACY_BASE_URL } from '../data/topics' function toProxyPath(fullUrl, baseUrl) { - // Only proxy the legacy Hasura API (to inject the admin secret via server) + // Only proxy the legacy GraphQL API (to inject the admin secret via server) if (baseUrl === LEGACY_BASE_URL && fullUrl.startsWith(baseUrl)) { return fullUrl.slice(baseUrl.length) } @@ -99,7 +99,7 @@ export default function TopicView({ topic, searchQuery }) { : 'bg-indigo-50 text-indigo-600 border-indigo-100' }`}> - {topic.type === 'legacy' ? 'Hasura API' : 'REST API'} + {topic.type === 'legacy' ? 'GraphQL API' : 'REST API'} {filtered.length} endpoint{filtered.length !== 1 ? 's' : ''}