The HTTP Server

Let’s learn the purpose of an HTTP server in clean architecture.

Exception from the previous lesson

In the previous lesson, we got an exception when the use case was called with the wrong parameters in the REST endpoint.

TypeError: room_list_use_case() missing 1 required positional argument: 'request'

To remove this exception we need to update the test case.

Update the test case

Here’s the new version of the test that avoids the exception:

Get hands-on with 1400+ tech skills courses.