<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Students API – a Server with a Database on kodkod | Intro Course</title><link>https://intro-kodkod-6.nm-ambition.com/en/docs/students-api/</link><description>Recent content in Students API – a Server with a Database on kodkod | Intro Course</description><generator>Hugo</generator><language>en</language><copyright>מבואות קודקוד</copyright><atom:link href="https://intro-kodkod-6.nm-ambition.com/en/docs/students-api/index.xml" rel="self" type="application/rss+xml"/><item><title>Connecting Routes to Database Actions: the Architecture</title><link>https://intro-kodkod-6.nm-ambition.com/en/docs/students-api/01-connecting-routes-to-db/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://intro-kodkod-6.nm-ambition.com/en/docs/students-api/01-connecting-routes-to-db/</guid><description>&lt;h2 id="what-will-we-learn"&gt;What will we learn?&lt;/h2&gt;
&lt;p&gt;Now we &lt;strong&gt;connect everything&lt;/strong&gt;: the server from the backend and FastAPI topic, and the database from the databases topic. This lesson focuses on the &lt;strong&gt;architecture&lt;/strong&gt;, that is, how the parts connect, and implements the first two Endpoints (reading). In the next lesson, the rest.&lt;/p&gt;</description></item><item><title>Students API — Full CRUD: POST, GET, PUT and DELETE on the Database</title><link>https://intro-kodkod-6.nm-ambition.com/en/docs/students-api/02-students-api-full-crud/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://intro-kodkod-6.nm-ambition.com/en/docs/students-api/02-students-api-full-crud/</guid><description>&lt;h2 id="what-will-we-learn"&gt;What will we learn?&lt;/h2&gt;
&lt;p&gt;We complete the API according to the mapping table:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;POST /students&lt;/code&gt;&lt;/strong&gt; → INSERT → &lt;strong&gt;201&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;PUT /students/{id}&lt;/code&gt;&lt;/strong&gt; → UPDATE → 200 / &lt;strong&gt;404&lt;/strong&gt; / &lt;strong&gt;409&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;DELETE /students/{id}&lt;/code&gt;&lt;/strong&gt; → DELETE → &lt;strong&gt;204&lt;/strong&gt; / 404.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;An input model&lt;/strong&gt; (Pydantic) and shared &lt;strong&gt;business validation&lt;/strong&gt; (400).&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="why-do-we-need-this"&gt;Why do we need this?&lt;/h2&gt;
&lt;p&gt;This is &lt;strong&gt;the short project that sums up Server + Database + CRUD&lt;/strong&gt;, as the syllabus defines. At the end of the lesson there is a real API: an app, a Frontend or another service can create, read, update and delete students, and the data is saved in the database.&lt;/p&gt;</description></item><item><title>Testing the System: Swagger UI, curl and a Test Script in Python</title><link>https://intro-kodkod-6.nm-ambition.com/en/docs/students-api/03-testing-with-swagger/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://intro-kodkod-6.nm-ambition.com/en/docs/students-api/03-testing-with-swagger/</guid><description>&lt;h2 id="what-will-we-learn"&gt;What will we learn?&lt;/h2&gt;
&lt;p&gt;A server that was not tested is a server you cannot be sure works. We will learn three ways, from the manual to the automatic:&lt;/p&gt;</description></item></channel></rss>