Complete the code to create a router with prefix '/items'.
from fastapi import APIRouter router = APIRouter(prefix=[1])
The prefix must start with a slash and match the route base path, so '/items' is correct.
Complete the code to add tags to the router for documentation.
router = APIRouter(prefix="/users", tags=[1])
Tags must be a list of strings, so ["users"] is correct.
Fix the error in the router creation by completing the blank.
router = APIRouter(prefix=[1], tags=["items"])
The prefix must be a string starting with a slash, so "/items" is correct.
Fill both blanks to create a router with prefix '/products' and tags ['products', 'inventory'].
router = APIRouter(prefix=[1], tags=[2])
The prefix must be '/products' as a string, and tags must be a list of strings including 'products' and 'inventory'.
Fill all three blanks to create a router with prefix '/orders', tags ['orders'], and include a GET endpoint '/list'.
router = APIRouter(prefix=[1], tags=[2]) @router.get([3]) async def list_orders(): return {"message": "List of orders"}
The prefix is '/orders', tags is a list with 'orders', and the GET path must be '/list' with quotes.