Reader Stacks

TOPIC

APIs & Integrations

Building and consuming APIs, and connecting third-party services.

Calling an API in Flutter With the http Package

Flutter's official http package covers most API needs directly — the part worth getting right is handling the async/await flow and checking the status code before trusting the response body.

Building an Autocomplete Search Field in Laravel

The backend piece — a debounced, rate-limited JSON search endpoint — stays the same regardless of which frontend autocomplete widget consumes it, and that endpoint is the part actually worth getting right.

Converting HTML to PDF in Angular

Two genuinely different approaches exist — rendering the DOM to an image-based PDF entirely in the browser, or asking a server to generate a real, selectable-text PDF — and they aren't interchangeable.

Generating QR Codes in Laravel

A single well-maintained package (endroid/qr-code, wrapped by simple-qrcode) covers this — the actual decisions are output format, error-correction level, and whether to embed a logo.

Enabling CORS in Laravel

A browser blocks cross-origin API requests by default — Laravel's built-in CORS middleware is what tells it which other origins, methods, and headers are actually allowed.

Building a Simple REST API in Laravel

API routes, resource controllers, and API Resources for shaping JSON responses — the minimum real structure for a Laravel API, not just returning models directly.

Creating Services in Angular

A service is a plain class Angular's dependency injector knows how to construct and share — the mechanism for putting logic and data outside any one component.

Angular File Upload With FormData

File inputs in Angular are uncontrolled — you read the selected File object off a change event, then hand it to the browser's FormData API before sending it with HttpClient.