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

Summary

In this chapter, we saw how to develop a web microservice. We started by designing its API following REST principles. Then, we described how to access the schema of the database, and how to do it using SQLAlchemy.

Then, we learned how to implement it using Flask-RESTPlus. We learned how to define the resources being mapped to the API endpoints, how to parse the input values, how to process the actions, and then how to return the results using the serializer model. We described how the authentication layer works.

We included tests and described how to use the pytest fixture to create initial conditions for our tests. In the next chapter, we will look at how to containerize the service and run it through Docker.

主站蜘蛛池模板: 金平| 临猗县| 攀枝花市| 墨竹工卡县| 宿松县| 武威市| 合水县| 京山县| 平阳县| 泾源县| 通城县| 全椒县| 汉阴县| 西城区| 迭部县| 南平市| 永登县| 西盟| 湛江市| 镇沅| 贵定县| 塔城市| 进贤县| 即墨市| 峨眉山市| 吴忠市| 墨江| 民权县| 西昌市| 嵊泗县| 梓潼县| 阳城县| 惠水县| 申扎县| 图木舒克市| 文水县| 敦化市| 怀仁县| 工布江达县| 江孜县| 奎屯市|