Client-Server Interaction

Recap and Feedback


In this part, you learned the basics of interacting with server-side application programming interfaces using the Fetch API. The part started with an introduction to server-side APIs, same-origin policy, and cross-origin resource sharing, which can be used to influence how browsers can retrieve data from external (cross-origin) addresses. This was followed by an introduction to the Fetch API and to using it for retrieving data from server-side APIs, as well as learning about the $effect rune in Svelte. Finally, error handling in APIs, RESTful API design, and the CRUD pattern were briefly discussed and introduced.

At this point, you should have an understanding of server-side applications as APIs and client-side applications as separate entities and you should have started to form an understanding of how client-side applications can be used to interact with server-side APIs.

Next, please reflect on your work on this chapter, and provide feedback on it. The feedback helps us improve the materials and the course.

Loading Exercise...