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: 16/umbraco-cms/customizing/foundation/fetching-data/README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,15 @@ description: Learn how to request data when extending the Backoffice.
8
8
9
9
There are two main ways to fetch data through HTTP in the Umbraco Backoffice: using the Fetch API or the Umbraco HTTP client. The Fetch API is a modern way to make network requests in JavaScript, while the Umbraco HTTP client is a wrapper around the Fetch API. That provides a more convenient way to make network requests.
10
10
11
-
For most scenarios, we recommend using the Umbraco HTTP client provided by Umbraco. The Fetch API is an alternative for simpler use cases. Here is a quick overview of the two options for you to compare:
11
+
For most scenarios, we recommend using the Umbraco HTTP Client because it:
12
+
13
+
- Automatically handles authentication and error handling.
14
+
- Provides type safety for requests and responses.
15
+
- Simplifies request and response parsing.
16
+
17
+
The Fetch API is an alternative for simpler use cases.
18
+
19
+
Here is a quick overview of the two options for you to compare:
0 commit comments