Hands-On Docker for Microservices with Python
上QQ阅读APP看书,第一时间看更新

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.