+
+
API Documentation
+
+ The DGIdb API can be used to query for drug-gene interactions in your
+ own applications.
+
+
+ To query the API, make GraphQL queries to:{' '}
+ https://dgidb.org/api/graphql
+
+
+ For examples and to experiment with API requests in your browser,
+ refer to the Playground below.
+
-
-
+
Playground
+
+
+ {sectionsMap.map((section) => {
+ return (
+
+ }
+ >
+
+ {section.header}
+
+
+
+ {section.sectionContent}
+
+
+ );
+ })}
+
+
+
+
);
diff --git a/client/src/pages/API/index.ts b/client/src/pages/API/index.ts
new file mode 100644
index 00000000..6e432e7c
--- /dev/null
+++ b/client/src/pages/API/index.ts
@@ -0,0 +1 @@
+export * from './API';
diff --git a/client/src/pages/Playground/index.ts b/client/src/pages/Playground/index.ts
deleted file mode 100644
index 469667af..00000000
--- a/client/src/pages/Playground/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from './Playground';
diff --git a/client/src/routes/public.tsx b/client/src/routes/public.tsx
index be874b60..4cb6c843 100644
--- a/client/src/routes/public.tsx
+++ b/client/src/routes/public.tsx
@@ -11,7 +11,7 @@ import { DrugRecord } from 'components/Drug/DrugRecord';
import { MainLayout } from 'components/Layout';
import { About } from 'pages/About';
import { Downloads } from 'pages/Downloads';
-import { Playground } from 'pages/Playground';
+import { API } from 'pages/API';
import { InteractionRecord } from 'components/Interaction/InteractionRecord';
const App = () => {
@@ -91,7 +91,7 @@ export const Routes = () => {
{ path: '/browse/sources', element:
},
{ path: '/about', element:
},
{ path: '/downloads', element:
},
- { path: '/api', element:
},
+ { path: '/api', element:
},
{ path: '/', element:
},
{ path: '*', element:
},
],