<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>In-Memory Storage on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/in-memory-storage/</link><description>Recent content in In-Memory Storage 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/in-memory-storage/index.xml" rel="self" type="application/rss+xml"/><item><title>Your First Full CRUD API: Items Manager Project</title><link>https://ai-blog.noorshomelab.dev/fastapi_beginner_course_20251025_173235/your-first-full-crud-api-items-manager-project/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/fastapi_beginner_course_20251025_173235/your-first-full-crud-api-items-manager-project/</guid><description>&lt;h2 id="your-first-full-crud-api-items-manager-project-covering-project-setup-structuring-your-fastapi-application-implement-create-post-operations-for-items-implement-read-get-operations-all-and-by-id"&gt;Your First Full CRUD API: Items Manager Project (covering: Project Setup: Structuring Your FastAPI Application, Implement CREATE (POST) Operations for Items, Implement READ (GET) Operations: All and By ID)&lt;/h2&gt;
&lt;h3 id="what-youll-learn"&gt;What You&amp;rsquo;ll Learn&lt;/h3&gt;
&lt;p&gt;In this chapter, you&amp;rsquo;ll embark on building your very first complete set of API operations for managing &amp;ldquo;items.&amp;rdquo; By the end, you will be able to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Structure a basic FastAPI project&lt;/strong&gt;: Organize your code into logical files for better maintainability.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Define data models with Pydantic&lt;/strong&gt;: Learn how to use Pydantic &lt;code&gt;BaseModel&lt;/code&gt; to validate incoming request data and define outgoing response data.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Implement &lt;code&gt;CREATE&lt;/code&gt; (POST) operations&lt;/strong&gt;: Create an endpoint that allows clients to add new items to your application.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Implement &lt;code&gt;READ&lt;/code&gt; (GET) operations&lt;/strong&gt;: Build endpoints to retrieve all items and to fetch a specific item by its unique identifier.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Handle in-memory data storage&lt;/strong&gt;: Understand how to simulate a database using simple Python data structures for learning purposes.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="core-concepts"&gt;Core Concepts&lt;/h3&gt;
&lt;h4 id="project-setup-structuring-your-fastapi-application"&gt;Project Setup: Structuring Your FastAPI Application&lt;/h4&gt;
&lt;p&gt;As your FastAPI application grows, putting everything into a single &lt;code&gt;main.py&lt;/code&gt; file can become unwieldy. A good practice is to separate concerns. For our &lt;code&gt;Items Manager&lt;/code&gt; project, we&amp;rsquo;ll start with a simple structure:&lt;/p&gt;</description></item></channel></rss>