Tag: api
10 articles
- API Routes
Build backend endpoints with SvelteKit's +server.js files. Learn to handle HTTP methods, return JSON, and create REST APIs.
- Your First x402 Server: Pay-Per-Request API
Build an Express API that requires Solana USDC payments. Return 402, verify payments, serve content.
- What is x402? The HTTP Status Code That Changes Everything
HTTP 402 'Payment Required' finally has a real implementation. Learn how x402 enables pay-per-request APIs and micropayments on the web.
- Handling API Errors in Your Vue 3 SPA
How to handle validation errors, server errors, and network failures gracefully in a Vue 3 SPA consuming a Laravel API.
- Shaping API Responses with Laravel Resources
Laravel API resources provide fine-grained control over JSON responses, letting you transform models and include relationships consistently.
- Laravel 11 API Authentication with Sanctum and Fortify
How to set up full authentication using Laravel Sanctum and Fortify including CORS, email verification, and password resets.
- Debugging Your API with Laravel Telescope
Laravel Telescope provides insight into requests, exceptions, and database queries. Essential for debugging your API.
- Testing API Endpoints with Insomnia or Postman
Testing your API endpoints is essential when building a Laravel API. Here's how to use Insomnia or Postman with Sanctum token authentication.
- Setting Up Laravel 11 with Sanctum and Fortify
How to set up Laravel 11 with Sanctum and Fortify for use as a headless API that your Vue SPA can consume.
- Building a Laravel API with Vue SPA: Introduction
A step by step guide on how to build a Laravel 11 API with a Vue 3 SPA to consume its data using Sanctum and Fortify.