<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Request Bodies on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/request-bodies/</link><description>Recent content in Request Bodies on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 25 Oct 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/request-bodies/index.xml" rel="self" type="application/rss+xml"/><item><title>Handle Data Input: Pydantic Models &amp;amp; Request Bodies</title><link>https://ai-blog.noorshomelab.dev/fastapi_beginner_course_20251025_173235/handle-data-input-pydantic-models--request-bodies/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/fastapi_beginner_course_20251025_173235/handle-data-input-pydantic-models--request-bodies/</guid><description>&lt;h2 id="chapter-title-handle-data-input-pydantic-models--request-bodies"&gt;Chapter Title: Handle Data Input: Pydantic Models &amp;amp; Request Bodies&lt;/h2&gt;
&lt;h3 id="what-youll-learn"&gt;What You&amp;rsquo;ll Learn&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;How to receive data sent by clients using HTTP POST requests.&lt;/li&gt;
&lt;li&gt;Understanding the concept of a &amp;ldquo;request body&amp;rdquo; in API communication.&lt;/li&gt;
&lt;li&gt;How to define structured data schemas for incoming data using Pydantic&amp;rsquo;s &lt;code&gt;BaseModel&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Leveraging FastAPI&amp;rsquo;s integration with Pydantic for automatic data validation.&lt;/li&gt;
&lt;li&gt;How Pydantic automatically serializes incoming JSON data into Python objects for easy use.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="core-concepts"&gt;Core Concepts&lt;/h3&gt;
&lt;h4 id="receiving-data-with-post-requests-and-request-bodies"&gt;Receiving Data with POST Requests and Request Bodies&lt;/h4&gt;
&lt;p&gt;When clients (like a web browser, mobile app, or another server) want to send data to your API to create a new resource (e.g., a new user, a new product) or submit information, they typically use an HTTP POST request. Unlike GET requests, where data is appended to the URL as query parameters, POST requests send data in the &lt;strong&gt;request body&lt;/strong&gt;.&lt;/p&gt;</description></item></channel></rss>