<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rest &#8211; CS@Worcester</title>
	<atom:link href="https://cs.worcester.edu/category/rest/feed/" rel="self" type="application/rss+xml" />
	<link>https://cs.worcester.edu</link>
	<description>Worcester State University Computer Science Department</description>
	<lastBuildDate>Sat, 15 Nov 2025 00:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
<site xmlns="com-wordpress:feed-additions:1">236835116</site>	<item>
		<title>Implementing REST API Calls</title>
		<link>https://bforbuild.dev/blog/implementing-rest-api-calls</link>
		
		<dc:creator><![CDATA[BforBuild]]></dc:creator>
		<pubDate>Sat, 15 Nov 2025 00:00:00 +0000</pubDate>
				<category><![CDATA[API]]></category>
		<category><![CDATA[CS-343]]></category>
		<category><![CDATA[CS@Worcester]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Quarter-3]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[web-development]]></category>
		<guid isPermaLink="false">https://bforbuild.dev/blog/implementing-rest-api-calls</guid>

					<description><![CDATA[Getting to grips with making REST API calls felt like finally being able to have a real conversation with the internet.]]></description>
										<content:encoded><![CDATA[<div class="article-content">
<p>Getting to grips with making REST API calls felt like finally being able to have a real conversation with the internet. At first the whole thing was a bit too much but once I started to see the patterns emerging, it just became second nature. It all clicked when I realised that a REST API is just a standardized way for programs to talk to each other over the web.</p>
<p><strong>What is REST?</strong> REST (Representational State Transfer) is an architectural style that uses standard HTTP methods to perform operations on resources. It&#8217;s stateless, meaning each request contains all the information needed to process it.</p>
<p><strong>HTTP Methods:</strong></p>
<ul>
<li><strong>GET:</strong> Retrieve data from the server</li>
<li><strong>POST:</strong> Create new data on the server</li>
<li><strong>PUT:</strong> Update existing data (replace entirely)</li>
<li><strong>PATCH:</strong> Partially update existing data</li>
<li><strong>DELETE:</strong> Remove data from the server</li>
</ul>
<p><strong>Making API Calls in JavaScript:</strong></p>
<p>The Fetch API provides a clean, promise-based way to make HTTP requests:</p>
<pre><code>// GET request
const response = await fetch('https://api.example.com/users');
const users = await response.json();

// POST request
const newUser = await fetch('https://api.example.com/users', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ name: 'John', email: 'john@example.com' })
});</code></pre>
<p><strong>Best Practices:</strong></p>
<ul>
<li>Always handle errors gracefully</li>
<li>Use appropriate HTTP status codes</li>
<li>Implement proper authentication</li>
<li>Version your APIs</li>
<li>Document everything</li>
</ul>
<p>Understanding REST APIs opens up a world of possibilities—from integrating third-party services to building your own backend systems. The ability to make API calls is fundamental to modern web development, and mastering it opens doors to countless opportunities.</p>
</p></div>

<p class="syndicated-attribution"><em>From the blog <a href="https://bforbuild.dev">BforBuild</a> by <a href="https://cs.worcester.edu/author/0/" title="Read other posts by BforBuild">BforBuild</a></em> and used with permission of the author. All other rights reserved by the author.</p>]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">50275</post-id>	</item>
		<item>
		<title>My Experience Learning REST API</title>
		<link>https://bforbuild.dev/blog/learning-rest-api</link>
		
		<dc:creator><![CDATA[BforBuild]]></dc:creator>
		<pubDate>Sun, 26 Oct 2025 00:00:00 +0000</pubDate>
				<category><![CDATA[API]]></category>
		<category><![CDATA[CS-343]]></category>
		<category><![CDATA[CS@Worcester]]></category>
		<category><![CDATA[Quarter-2]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[web-development]]></category>
		<guid isPermaLink="false">https://bforbuild.dev/blog/learning-rest-api</guid>

					<description><![CDATA[When I first started learning about REST APIs, I thought it was just about how apps talk to each other over the internet. But after reading the REST API Tutorial, I realized that REST is much more than just sending HTTP requests.]]></description>
										<content:encoded><![CDATA[<div class="article-content">
<p>When I first started learning about REST APIs, I thought it was just about how apps talk to each other over the internet. But after reading the REST API Tutorial, I realized that REST is much more than just sending HTTP requests. It&#8217;s an entire way of thinking about how systems communicate efficiently and reliably.</p>
<p><strong>REST Constraints:</strong> What makes an API truly RESTful is adherence to certain constraints:</p>
<ol>
<li><strong>Client-Server Architecture:</strong> Separation of concerns between the user interface and data storage</li>
<li><strong>Statelessness:</strong> Each request must contain all information necessary to understand and complete it</li>
<li><strong>Cacheability:</strong> Responses must define themselves as cacheable or non-cacheable</li>
<li><strong>Uniform Interface:</strong> A standardized way of communicating between client and server</li>
<li><strong>Layered System:</strong> A client cannot tell whether it&#8217;s connected directly to the end server</li>
<li><strong>Code on Demand (optional):</strong> Servers can extend client functionality by transferring executable code</li>
</ol>
<p><strong>Resource-Based Thinking:</strong> In REST, everything is a resource. Users, products, orders—they&#8217;re all resources identified by URIs. This mental model helps structure APIs in a logical, predictable way.</p>
<p><strong>URL Design Best Practices:</strong></p>
<ul>
<li>Use nouns, not verbs: <code>/users</code> not <code>/getUsers</code></li>
<li>Use plural names: <code>/products</code> not <code>/product</code></li>
<li>Use hierarchy to show relationships: <code>/users/123/orders</code></li>
<li>Keep URLs simple and predictable</li>
</ul>
<p><strong>Status Codes Matter:</strong> Using appropriate HTTP status codes helps clients understand what happened:</p>
<ul>
<li>2xx: Success</li>
<li>3xx: Redirection</li>
<li>4xx: Client errors</li>
<li>5xx: Server errors</li>
</ul>
<p>Learning REST has fundamentally changed how I think about building and consuming web services. It&#8217;s not just a technology—it&#8217;s a design philosophy that emphasizes simplicity, statelessness, and resource-based thinking.</p>
</p></div>

<p class="syndicated-attribution"><em>From the blog <a href="https://bforbuild.dev">BforBuild</a> by <a href="https://cs.worcester.edu/author/0/" title="Read other posts by BforBuild">BforBuild</a></em> and used with permission of the author. All other rights reserved by the author.</p>]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">50277</post-id>	</item>
		<item>
		<title>Trying to use Rest API</title>
		<link>https://computersciencebybrandonnjugunabasketballfan.wordpress.com/2024/11/23/trying-to-use-rest-api/</link>
		
		<dc:creator><![CDATA[Brandon Njuguna]]></dc:creator>
		<pubDate>Sun, 24 Nov 2024 00:58:04 +0000</pubDate>
				<category><![CDATA[API]]></category>
		<category><![CDATA[azure]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[CS-343]]></category>
		<category><![CDATA[CS@Worcester]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Week 11]]></category>
		<guid isPermaLink="false">http://computersciencebybrandonnjugunabasketballfan.wordpress.com/?p=47</guid>

					<description><![CDATA[In this blog post, I’ll share my thoughts on an article I read titled “What is a REST API?” from Cleo’s blog. This article dives into the concept of REST APIs (Representational State Transfer), and after reading it, I feel like I now have a much clearer understanding of how REST APIs work and why […]]]></description>
										<content:encoded><![CDATA[<p>In this blog post, I’ll share my thoughts on an article I read titled <a href="https://www.cleo.com/blog/blog-knowledge-base-what-is-rest-api">&#8220;What is a REST API?&#8221;</a> from Cleo’s blog. This article dives into the concept of REST APIs (Representational State Transfer), and after reading it, I feel like I now have a much clearer understanding of how REST APIs work and why they’re so important in modern web development. This topic ties directly into our web development course, where we’re learning about web services and how to connect different systems.</p>
<p>The article explains what REST APIs are and why they are widely used. It starts by explaining the core principles of REST, such as statelessness and resource-based URIs (Uniform Resource Identifiers). In simple terms, REST APIs allow different software systems to communicate over the internet by sending requests (like GET, POST, PUT, DELETE) to a server, where each request is independent and contains all the necessary information to be processed. The article also discusses the scalability and flexibility of REST APIs, which make them a popular choice for building web applications that need to handle a large number of users or integrate with other services.</p>
<p>I chose this article because I’ve heard the term “REST API” thrown around in class and in tech articles, but I never fully understood how they work. As a computer science beginner, I often find myself struggling to grasp concepts like APIs and how they fit into the bigger picture of web development. Since we’re covering APIs and web services in our course, I figured reading a simple, clear article would help me solidify my understanding of this important topic.</p>
<p>After reading the article, I feel much more confident about my understanding of REST APIs. Before, I knew APIs were used to transfer data between different applications, but I didn’t fully understand how REST APIs specifically work. The article’s explanation of statelessness was particularly eye-opening to me. I had no idea that each request in a REST API is self-contained, meaning it doesn’t rely on any prior interactions to be processed. This makes sense when you think about how web applications need to be scalable and efficient—keeping things stateless helps ensure the server isn’t overloaded with unnecessary data.</p>
<p>Another thing I found interesting was the explanation of how RESTful APIs use HTTP methods (like GET and POST) to interact with resources. It made me realize how intuitive and flexible REST is for creating services that can easily be integrated with other software systems. I now feel much more comfortable working with APIs.</p>
<p>I want to explore more advanced topics, like authentication and error handling, which the article briefly touched on. This will help me build more secure and reliable web applications.</p>
<p>Resource:</p>
<p><a href="https://www.cleo.com/blog/blog-knowledge-base-what-is-rest-api">https://www.cleo.com/blog/blog-knowledge-base-what-is-rest-api</a></p>

<p class="syndicated-attribution"><em>From the blog <a href="https://computersciencebybrandonnjugunabasketballfan.wordpress.com">Computer Science From a Basketball Fan</a> by <a href="https://cs.worcester.edu/author/0/" title="Read other posts by Brandon Njuguna">Brandon Njuguna</a></em> and used with permission of the author. All other rights reserved by the author.</p>]]></content:encoded>
					
		
		<enclosure url="https://0.gravatar.com/avatar/3589e174c35a0d65a3313526593ef8d2aab6880abea849b96ab6de8c93cae1e4?s=96&#038;d=identicon&#038;r=G" length="0" type="" />

		<post-id xmlns="com-wordpress:feed-additions:1">26091</post-id>	</item>
	</channel>
</rss>
