async def METHOD_NAME(self, web_request: WebRequest):
    if web_request.get_action() == "POST":
        spool_id = web_request.get_int("spool_id", None)
        await self.set_active_spool(spool_id)
    # For GET requests we will simply return the spool_id
    return {"spool_id": self.spool_id}