2915 rest api documentation (#3020)
* Init rest-api page * Add ugly form to fetch open api schema * Clean code * Make the form design more acceptable * Update doc * Use local storage * Update design * Add isLoading * Fix typo * Fix long lines * Code review returns * Remove staging and local url from servers
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import { createGraphiQLFetcher } from "@graphiql/toolkit";
|
||||
import { GraphiQL } from "graphiql";
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import Layout from "@theme/Layout";
|
||||
import BrowserOnly from "@docusaurus/BrowserOnly";
|
||||
|
||||
@ -16,9 +15,7 @@ const GraphiQLComponent = () => {
|
||||
window.localStorage.setItem("graphiql:theme", "light");
|
||||
}
|
||||
|
||||
const fetcher = createGraphiQLFetcher({
|
||||
url: "https://api.twenty.com/graphql",
|
||||
});
|
||||
const fetcher = createGraphiQLFetcher({url: "https://api.twenty.com/graphql"});
|
||||
return (
|
||||
<div className="fullHeightPlayground">
|
||||
<GraphiQL fetcher={fetcher} />;
|
||||
|
||||
Reference in New Issue
Block a user