# Using The Fetch API

How fetch sends a web request and returns a promise, and how .then() receives the response and reads its body as text.

![Cheat sheet: Using The Fetch API](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/268ac8c2d971406fb319522ed42ef02e.webp)

- Category: JavaScript
- Level: Journeyman
- Tags: Spring Boot, thymeleaf
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/loading-partial-pages-using-the-fetch-api-cheat-sheet
