🌐 Network Calls Example
This page demonstrates various network requests for testing mocking and interception.
1. Fetch JSON API
Fetches data from /api/users endpoint.
Click button to fetch users...
2. POST Request
Sends a POST request to /api/login with credentials.
Click button to send login request...
3. External API Call
Fetches data from https://jsonplaceholder.typicode.com/posts/1
Click button to fetch external data...
4. Multiple Parallel Requests
Makes 3 parallel requests to /api/items/1, /api/items/2, /api/items/3
Click button to fetch items in parallel...
5. Slow Endpoint
Requests /api/slow which simulates a 2-second delay.
Click button to test slow endpoint...