Microservices-oriented architecture has evolved from a buzzword to standard architecture practice for building large-scale applications. Microservices offer a lot of advantages, including flexible language selection, functionality-based scalability, independent deployment, and independent product development teams.

In this tutorial, you will be building REST API endpoints in Python and adding resource access permissions to these endpoints using https://cerbos.dev/.

Now add the API endpoints for the TODO resource: ```python from flask import Flask from flask_restful import Resource, Api, reqparse app = Flask(__name__) api = Api(app) class TODO(Resource): pass api.add_resource(TODO, '/todo')

The final step is to check the permissions in the API endpoint to validate if the user is authorized to access the TODO resource.

Related Articles