Posts

Showing posts with the label web service

Building REST API in Python using FastAPI

Image
Building REST API in Python using FastAPI In this article I will discuss some basics about RESTful webservice and developing a web service in Python using Fast API framework. First let’s see what a RESTful service is. REST stands for Representational state transfer. It is a standard for developing interactive applications that use web services. We have multiple architectural guiding constraints in developing RESTful services. For detailed information on RESTful services, I recommend to below resources: ·         https://en.wikipedia.org/wiki/Representational_state_transfer ·         https://flask-restful.readthedocs.io/en/latest/ (Flask is another Python framework for building web services) What is FastAPI? FastAPI is a modern high-performance web framework that with Python3.6+ based on standard Python. While there are many articles out there mentioning about performance of FastAPI, the FastAPI documentation itself has explained very well about the benchmarks and speed wi