- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 1,432 for app (0.01 seconds)
-
tests/test_response_model_invalid.py
def test_invalid_response_model_raises(): with pytest.raises(FastAPIError): app = FastAPI() @app.get("/", response_model=NonPydanticModel) def read_root(): pass # pragma: nocover def test_invalid_response_model_sub_type_raises(): with pytest.raises(FastAPIError): app = FastAPI() @app.get("/", response_model=list[NonPydanticModel]) def read_root():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.1K bytes - Click Count (0) -
cmd/main.go
registerCommand(serverCmd) registerCommand(fmtGenCmd) // Set up app. cli.HelpFlag = cli.BoolFlag{ Name: "help, h", Usage: "show help", } cli.VersionPrinter = printMinIOVersion app := cli.NewApp() app.Name = name app.Author = "MinIO, Inc." app.Version = ReleaseTag app.Usage = "High Performance Object Storage"
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Jul 30 22:59:48 GMT 2024 - 6.5K bytes - Click Count (0) -
tests/test_starlette_urlconvertors.py
from fastapi.testclient import TestClient app = FastAPI() @app.get("/int/{param:int}") def int_convertor(param: int = Path()): return {"int": param} @app.get("/float/{param:float}") def float_convertor(param: float = Path()): return {"float": param} @app.get("/path/{param:path}") def path_convertor(param: str = Path()): return {"path": param} @app.get("/query/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Nov 27 14:46:06 GMT 2022 - 1.7K bytes - Click Count (0) -
docs/de/docs/tutorial/bigger-applications.md
* Es gibt auch eine Datei `app/dependencies.py`, genau wie `app/main.py` ist sie ein „Modul“: `app.dependencies`. * Es gibt ein Unterverzeichnis `app/routers/` mit einer weiteren Datei `__init__.py`, es handelt sich also um ein „Python-Subpackage“: `app.routers`. * Die Datei `app/routers/items.py` befindet sich in einem Package, `app/routers/`, also ist sie ein Submodul: `app.routers.items`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 13:54:34 GMT 2025 - 21.3K bytes - Click Count (0) -
tests/test_dependency_partial.py
async_callable_gen_dependency = AsyncCallableGenDependency() methods_dependency = MethodsDependency() @app.get("/partial-function-dependency") async def get_partial_function_dependency( value: Annotated[ str, Depends(partial(function_dependency, "partial-function-dependency")) ], ) -> str: return value @app.get("/partial-async-function-dependency") async def get_partial_async_function_dependency(
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.3K bytes - Click Count (0) -
docs/ru/docs/tutorial/bigger-applications.md
* Он также содержит файл `app/dependencies.py`, который также, как и `app/main.py`, является модулем: `app.dependencies`. * Здесь также находится подкаталог `app/routers/`, содержащий `__init__.py`. Он является суб-пакетом: `app.routers`. * Файл `app/routers/items.py` находится внутри пакета `app/routers/`. Таким образом, он является суб-модулем: `app.routers.items`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Dec 11 21:25:03 GMT 2025 - 30.4K bytes - Click Count (0) -
tests/main.py
"url": "https://docs.example.com/api-general", } app = FastAPI(openapi_external_docs=external_docs) @app.api_route("/api_route") def non_operation(): return {"message": "Hello World"} def non_decorated_route(): return {"message": "Hello World"} app.add_api_route("/non_decorated_route", non_decorated_route) @app.get("/text") def get_text(): return "Hello World"
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 4.5K bytes - Click Count (0) -
docs/en/docs/tutorial/bigger-applications.md
* There's also an `app/dependencies.py` file, just like `app/main.py`, it is a "module": `app.dependencies`. * There's a subdirectory `app/routers/` with another file `__init__.py`, so it's a "Python subpackage": `app.routers`. * The file `app/routers/items.py` is inside a package, `app/routers/`, so, it's a submodule: `app.routers.items`. * The same with `app/routers/users.py`, it's another submodule: `app.routers.users`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 18.6K bytes - Click Count (0) -
tests/test_router_events.py
async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]: yield @asynccontextmanager async def router_lifespan(app: FastAPI) -> AsyncGenerator[None, None]: yield router = APIRouter(lifespan=router_lifespan) app = FastAPI(lifespan=lifespan) app.include_router(router) with TestClient(app) as client: assert not client.app_state
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 7.3K bytes - Click Count (0) -
tests/test_request_params/test_form/test_optional_list.py
from fastapi import FastAPI, Form from fastapi.testclient import TestClient from pydantic import BaseModel, Field from .utils import get_body_model_name app = FastAPI() # ===================================================================================== # Without aliases @app.post("/optional-list-str", operation_id="optional_list_str") async def read_optional_list_str( p: Annotated[Optional[list[str]], Form()] = None, ):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 9.9K bytes - Click Count (0)