- Sort Score
- Num 10 results
- Language All
Results 881 - 890 of 1,377 for app (0.01 seconds)
-
tests/test_security_api_key_query_optional.py
from pydantic import BaseModel app = FastAPI() api_key = APIKeyQuery(name="key", auto_error=False) class User(BaseModel): username: str def get_current_user(oauth_header: Optional[str] = Security(api_key)): if oauth_header is None: return None user = User(username=oauth_header) return user @app.get("/users/me")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2K bytes - Click Count (0) -
tests/test_security_http_digest.py
from fastapi.testclient import TestClient app = FastAPI() security = HTTPDigest() @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials} client = TestClient(app) def test_security_http_digest():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2.1K bytes - Click Count (0) -
tests/test_put_no_body.py
from fastapi import FastAPI from fastapi.testclient import TestClient app = FastAPI() @app.put("/items/{item_id}") def save_item_no_body(item_id: str): return {"item_id": item_id} client = TestClient(app) def test_put_no_body(): response = client.put("/items/foo") assert response.status_code == 200, response.text assert response.json() == {"item_id": "foo"} def test_put_no_body_with_body():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 3.3K bytes - Click Count (0) -
helm-releases/minio-3.4.3.tgz
Service metadata: name: chart-1640120023-minio-console namespace: "minio" labels: app: minio chart: minio-3.4.2 release: chart-1640120023 heritage: Helm spec: type: ClusterIP ports: - name: http port: 9001 protocol: TCP targetPort: 9001 selector: app: minio release: chart-1640120023 --- # Source: minio/templates/service.yaml apiVersion: v1 kind: Service metadata: name: chart-1640120023-minio namespace: "minio" labels: app: minio chart: minio-3.4.2 release: chart-1640120023 heritage: Helm monitoring:...
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Dec 21 20:55:50 GMT 2021 - 17.7K bytes - Click Count (0) -
docs/ru/docs/tutorial/middleware.md
/// ## Порядок выполнения нескольких middleware { #multiple-middleware-execution-order } Когда вы добавляете несколько middleware с помощью декоратора `@app.middleware()` или метода `app.add_middleware()`, каждое новое middleware оборачивает приложение, формируя стек. Последнее добавленное middleware — самое внешнее (*outermost*), а первое — самое внутреннее (*innermost*).Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.3K bytes - Click Count (0) -
docs/uk/docs/tutorial/response-model.md
У таких випадках можна скористатися параметром `response_model` в декораторі маршруту (наприклад, @app.get()). Параметр `response_model` працює з будь-яким *оператором шляху*: * `@app.get()` * `@app.post()` * `@app.put()` * `@app.delete()` * тощо. {* ../../docs_src/response_model/tutorial001_py310.py hl[17,22,24:27] *} /// note | Примітка
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Jun 24 19:14:01 GMT 2025 - 24.8K bytes - Click Count (0) -
helm-releases/minio-5.3.0.tgz
abled) (eq .Values.networkPolicy.flavor "cilium") }} kind: CiliumNetworkPolicy apiVersion: cilium.io/v2 metadata: name: {{ template "minio.fullname" . }} labels: app: {{ template "minio.name" . }} chart: {{ template "minio.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: endpointSelector: matchLabels: app: {{ template "minio.name" . }} release: {{ .Release.Name }} ingress: - toPorts: - ports: - port: "{{ .Values.minioAPIPort }}" protocol: TCP - port: "{{ .Values.minioConsolePort...
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 11 12:21:05 GMT 2024 - 21.7K bytes - Click Count (0) -
docs/fr/docs/tutorial/debugging.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Oct 27 17:31:14 GMT 2024 - 2.9K bytes - Click Count (0) -
docs/pt/docs/tutorial/debugging.md
Então, a seção: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` vai executar. --- Isso não acontecerá se você importar esse módulo (arquivo). Então, se você tiver outro arquivo `importer.py` com: ```Python from myapp import app # Mais um pouco de código ```Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.7K bytes - Click Count (0) -
docs_src/security/tutorial004_an_py39.py
) return Token(access_token=access_token, token_type="bearer") @app.get("/users/me/", response_model=User) async def read_users_me( current_user: Annotated[User, Depends(get_current_active_user)], ): return current_user @app.get("/users/me/items/") async def read_own_items( current_user: Annotated[User, Depends(get_current_active_user)], ):Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 02:57:38 GMT 2025 - 4.2K bytes - Click Count (0)