What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-26 04:17:02
FastAPI SyntaxError: non-default argument follows default argument
from fastapi import FastAPI, Path app = FastAPI() @app.get("/items/{item_id}") async def read_items( q: str, item_id: int = Path(..., title="The ID of the item to get") ): results = {"item_id": item_id} if q: ... Add solution