Tag

Request Validation

1 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
May 10, 2025 · Backend Development

Master FastAPI Request Body Validation with Pydantic Models

This guide explains how FastAPI uses Pydantic models to define, validate, and parse JSON and form request bodies, set default values and custom rules, handle nested structures, and return response models, providing a type‑safe, efficient way to build backend APIs.

API designBackend DevelopmentPydantic
0 likes · 8 min read
Master FastAPI Request Body Validation with Pydantic Models
Laravel Tech Community
Laravel Tech Community
Aug 14, 2020 · Backend Development

How to Access HTTP Request Data in Laravel Controllers

This article explains multiple ways to obtain and work with the current HTTP request in Laravel, covering dependency injection in controllers, route parameters, route closures, URL and method retrieval, input handling (including defaults, arrays, and old data), existence checks, and file uploads, with practical code examples.

HTTP requestLaravelPHP
0 likes · 5 min read
How to Access HTTP Request Data in Laravel Controllers