To continue our journey to build a python API using FASTAPI, we will see how to update a record in the database either fully or partially. These operations are called PUT or PATCH. The fundamental difference between a PUT and PATCH operation is that PUT indicates updating the entire record while PATCH means updating a…
Tag: API
Python API Using FASTAPI – POST – CREATE – Part IV
Up until now, we have seen various techniques of dealing with GET requests but this post will deal with the next operation of POST which means creating a new object or resource on the server/database. The table below gives the mapping of the HTTP request methods to CRUD operations. Let’s see how to use POST…
Python API Using FASTAPI – For Network Engineers – Dynamic Routes – Part II
In Part 1 we saw how to get started with FASTAPI and writing simple GET endpoints. In this post, we will see how we can configure dynamic routes to accept variables in the get request. Please note I am not referring to passing query parameters here. We will see how to use query parameters in…
Python API Using FASTAPI – For Network Engineers – Part I
There are multiple frameworks one could leverage to write a simple API but in this post, we are going to talk about a relatively newer framework called FASTAPI for writing your own quick and simple python API using FASTAPI for network automation. Step1:- Create a virtual environment and install the required libraries. Step2:- Download database.csv…
Beginners Guide to Network Automation
Network Automation is the new buzz word which essentially means use of software and technology to reduce human effort to perform the tasks that we have been conventionally doing thus far. You could read up on the definitions and different perspectives of major players in this industry like CISCO JUNIPER VMWARE REDHAT Here in this…