March 16, 2024

How to use FastAPI Routers

The endpoint is one of the most important aspects when we plan to design an API. The endpoint is the entry point that is used by clients to send requests and receive responses. In this article we will see how Pro’s use endpoints and how you can write and manage fastAPI endpoints for small as well as for bigger applications. Managing endpoints in small web applications versus larger enterprise-level APIs involves considering factors such as scalability, maintainability, and organization. Let’s break down how you can approach this in FastAPI, focusing on both scenarios: What is an Endpoint? An endpoint is a […]
March 12, 2024

Understanding HTTP Requests

In the context of APIs built using FastAPI, an HTTP request is a message sent by a client to a server, specifying the action it wants the server to perform. HTTP requests typically contain information such as the request method, URL, headers, and optionally, a message body. FastAPI supports various types of HTTP requests, including GET, POST, PUT, DELETE, PATCH, and more. In this post we will discuss about HTTP request and Responses. We will further deep dive into individual components of HTTP request. Components of an HTTP Request: Example of an HTTP Request: This example represents a POST request to […]
March 10, 2024

Mastering FastAPI Step By Step

You want to master FastAPI & Rest API’s? Good Decision. Nowadays, the exchange of information between different software applications is crucial for seamless functionality and efficient operations. This exchange is facilitated by Application Programming Interfaces (APIs). In this article, we’ll delve into what APIs are, why they are necessary, and explore the concepts of REST architecture and FastAPI. Additionally, we’ll guide you through creating your first FastAPI API. This will be the first article in series for Mastering FastAPI. What is an API? An API, or Application Programming Interface, is a set of rules, protocols, and tools that allows different software […]