官术网_书友最值得收藏!

Introduction

We are in the internet era, a world where everything is connected. Data flows seamlessly from one place to another. We can get all the information in the world with a few clicks on a website. Take Skyscanner as an example, we just need to put in the date and location of our trips, and it can find us the cheapest flight in a split second; the hero behind the scenes that provides this data is API.

In this chapter, you will learn what a web service, an API, and REST are. We will start by teaching the fundamental concepts of APIs. Then we will look at real-life examples of how different web services (Google, Facebook, and so on) use the REST API.

Finally, we will develop our first simple Python RESTful API using Python. Python is a popular and powerful programming language. Apart from its extensive use in the realm of artificial intelligence, it is also widely used in web application development, big data analysis, web scraping, and process automation. What makes Python excel in so many areas is the extensive number of frameworks available. The frameworks do all the heavy lifting jobs and that allows the developers to focus on the actual application design and development.

In this chapter, you will see how data is encoded and communicated between the frontend and the backend. You will learn technical details about the JSON format, the HTTP protocol, HTTP status codes, and so on. All the development work will be verified and tested using Postman and httpie/curl. We will take you through the whole process of web application development. Not only will you learn the essential aspects of developing a RESTful API, but you will also learn about the thinking process, design, development, testing, and even deployment. This is a journey of learning the complete software development life cycle. Let's embark on our exciting journey now!

主站蜘蛛池模板: 涟水县| 宜都市| 昌平区| 渑池县| 肃北| 浦东新区| 砀山县| 永安市| 九江市| 东丽区| 弥勒县| 苍梧县| 黄石市| 舟山市| 襄汾县| 左贡县| 湘潭县| 高密市| 丹东市| 华池县| 林州市| 高陵县| 庆安县| 香格里拉县| 沐川县| 清河县| 鄄城县| 蓬安县| 华亭县| 北票市| 南溪县| 涟水县| 南溪县| 湘潭县| 长寿区| 青川县| 云龙县| 泰兴市| 泗水县| 武陟县| 洪雅县|