@@ -15,6 +15,7 @@ import LanguageTabs from '@site/src/components/LanguageTabs';
1515import ProtocolTabs from '@site/src /components/ProtocolTabs';
1616import PkgInstall from '@site/src /components/PkgInstall';
1717import TypeScriptEditor from '@site/src /components/TypeScriptEditor';
18+ import Link from '@docusaurus/Link ';
1819
1920# Define Resources
2021
@@ -34,7 +35,26 @@ values={[
3435] }>
3536<TabItem value =" rest " >
3637
37- <PkgInstall pkgs =" @data-client/rest " />
38+ <PkgInstall pkgs =" @data-client/rest " />
39+
40+ <p >
41+ <center >
42+ <Link className =" button button--secondary button--sm " to =" https://chatgpt.com/g/g-682609591fe48191a6850901521b4e4b-typescript-rest-codegen " ><img src="/img/gpt.svg" alt="Codegen GPT" style={{
43+ height: '1em', // Match font size
44+ verticalAlign: '-0.125em', // Fine-tune: try -0.125em or 'middle'
45+ display: 'inline', // Inline with text
46+ }}
47+ /> Codegen</Link >  ;
48+ <Link className =" button button--secondary button--sm " to =" https://github.com/reactive/data-client/blob/master/.github/instructions/rest.instructions.md " ><img src="/img/copilot.svg" alt="Github Copilot" style={{
49+ height: '1em', // Match font size
50+ verticalAlign: '-0.125em', // Fine-tune: try -0.125em or 'middle'
51+ display: 'inline', // Inline with text
52+ }}
53+ /> Instructions</Link >
54+ </center >
55+ </p >
56+
57+
3858
3959[ resource()] ( /rest/api/resource ) constructs a namespace of [ RestEndpoints] ( /rest/api/RestEndpoint )
4060
@@ -84,10 +104,10 @@ TodoResource.delete({ id: 5 });
84104
85105</TypeScriptEditor >
86106
87- </TabItem >
88- <TabItem value =" gql " >
107+ </TabItem >
108+ <TabItem value =" gql " >
89109
90- <PkgInstall pkgs =" @data-client/graphql " />
110+ <PkgInstall pkgs =" @data-client/graphql " />
91111
92112[ GQLEndpoint] ( /graphql/api/GQLEndpoint ) helps quickly defined [ queries] ( /graphql/api/GQLEndpoint#query ) and [ mutations] ( /graphql/api/GQLEndpoint#mutate )
93113
@@ -133,10 +153,10 @@ export const TodoResource = {
133153
134154</TypeScriptEditor >
135155
136- </TabItem >
137- <TabItem value =" other " >
156+ </TabItem >
157+ <TabItem value =" other " >
138158
139- <PkgInstall pkgs =" @data-client/endpoint " />
159+ <PkgInstall pkgs =" @data-client/endpoint " />
140160
141161Pre-existing TypeScript definitions can be used in <abbr title =" Reactive Data Client " >Data Client</abbr > with
142162[ Endpoint] ( /rest/api/Endpoint ) and [ EntityMixin] ( /rest/api/EntityMixin ) .
@@ -226,7 +246,7 @@ export const TodoResource = {
226246
227247</TypeScriptEditor >
228248
229- </TabItem >
249+ </TabItem >
230250</Tabs >
231251
232252<!--
0 commit comments