Upgrading fastapi 0.11 to 0.12
Review needed0.11.0 → 0.12.1New1Changed1Fixed3
Review neededUpgrade verdict
1 changed default.
In plain terms
- Nothing in this range needs changes to your code. It adds features and fixes.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
method FastAPI.add_api_route(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> None → method FastAPI.add_api_route(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> None - changed:
method FastAPI.api_route(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.api_route(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.delete(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.delete(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.get(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.get(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.head(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.head(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.include_router(router: routing.APIRouter, *, prefix: str=…, tags: List[str]=…) -> None → method FastAPI.include_router(router: routing.APIRouter, *, prefix: str=…, tags: List[str]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None - changed:
method FastAPI.options(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.options(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.patch(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.patch(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.post(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.post(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.put(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.put(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method FastAPI.trace(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method FastAPI.trace(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable
- changed:
constructor APIRoute(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, name: str=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…) -> None → constructor APIRoute(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, name: str=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…) -> None - changed:
method APIRouter.add_api_route(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> None → method APIRouter.add_api_route(path: str, endpoint: Callable, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> None - changed:
method APIRouter.api_route(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.api_route(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, methods: List[str]=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.delete(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.delete(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.get(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.get(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.head(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.head(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.include_router(router: APIRouter, *, prefix: str=…, tags: List[str]=…) -> None → method APIRouter.include_router(router: APIRouter, *, prefix: str=…, tags: List[str]=…, responses: Dict[Union[int, str], Dict[str, Any]]=…) -> None - changed:
method APIRouter.options(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.options(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.patch(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.patch(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.post(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.post(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.put(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.put(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable - changed:
method APIRouter.trace(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable → method APIRouter.trace(path: str, *, response_model: Type[BaseModel]=…, status_code: int=…, tags: List[str]=…, summary: str=…, description: str=…, response_description: str=…, responses: Dict[Union[int, str], Dict[str, Any]]=…, deprecated: bool=…, operation_id: str=…, include_in_schema: bool=…, content_type: Type[Response]=…, name: str=…) -> Callable