Search⌘ K
AI Features

The HTTP Server

Understand how to implement and test HTTP server endpoints using Flask in a clean architecture context. This lesson guides you through fixing exceptions, updating test cases, and ensuring proper request handling for robust application behavior.

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 ...