...

/

The Repository

The Repository

Let’s learn the role of the repository in clean architecture.

Exception from the previous lesson

If we run the Flask development web server now and try to access the /rooms endpoint, we’ll get the following response:

{"type": "SystemError", "message": "TypeError: list() got an unexpected keyword argument 'filters'"}

The HTTP 500 error we see in the HTTP response is exactly the same as the mapping of our SystemError use case error, which in turn signals a Python exception.

Update the repository

This error comes from the repository, which hasn’t been migrated to the new API. To tackle this, we need to change ...

Access this course and 1400+ top-rated courses and projects.