You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rest/README.md
+48-11Lines changed: 48 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ import TypeScriptEditor from '@site/src/components/TypeScriptEditor';
14
14
15
15
<PkgTabspkgs="@data-client/rest" />
16
16
17
-
## Define the API
17
+
## Define the Resources
18
18
19
19
[Resources](./api/resource.md) are a collection of `methods` for a given `data model`. [Entities](./api/Entity.md) and [Schemas](./api/schema.md) are the declarative _data model_.
20
20
[RestEndpoint](./api/RestEndpoint.md) are the [_methods_](<https://en.wikipedia.org/wiki/Method_(computer_programming)>) on
@@ -142,19 +142,20 @@ TypeScript enforces the arguments specified with a prefixed colon like `:slug` i
[useSuspense()](/docs/api/useSuspense) acts like [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await), ensuring the data is available before returning. [Learn how to be declare your data dependencies](/docs/getting-started/data-dependency)
@@ -187,11 +194,41 @@ export default function ArticleList() {
187
194
}
188
195
```
189
196
190
-
</TabItem>
191
-
</Tabs>
197
+
:::info
192
198
193
199
[useSuspense()](/docs/api/useSuspense) acts like [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await), ensuring the data is available before returning. [Learn how to be declare your data dependencies](/docs/getting-started/data-dependency)
0 commit comments