- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for define (0.16 sec)
-
fastapi/security/api_key.py
""" API key authentication using a query parameter. This defines the name of the query parameter that should be provided in the request with the API key and integrates that into the OpenAPI documentation. It extracts the key value sent in the query parameter automatically and provides it as the dependency result. But it doesn't define how to send that API key to the client. ## Usage
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 23 22:29:18 GMT 2024 - 9.1K bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial001.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/", operation_id="some_specific_id_you_define") async def read_items():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 167 bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial001.py
"content": {"application/json": {"schema": {}}}, } }, "summary": "Read Items", "operationId": "some_specific_id_you_define", } } },
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 1K bytes - Viewed (0) -
fastapi/datastructures.py
from starlette.datastructures import UploadFile as StarletteUploadFile from typing_extensions import Annotated, Doc class UploadFile(StarletteUploadFile): """ A file uploaded in a request. Define it as a *path operation function* (or dependency) parameter. If you are using a regular `def` function, you can use the `upload_file.file` attribute to access the raw standard Python file (blocking, not async), useful and
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 5.6K bytes - Viewed (0) -
tests/main.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 4.3K bytes - Viewed (0) -
docs_src/separate_openapi_schemas/tutorial001_py310.py
@app.post("/items/") def create_item(item: Item): return item @app.get("/items/") def read_items() -> list[Item]: return [ Item( name="Portal Gun", description="Device to travel through the multi-rick-verse", ), Item(name="Plumbus"),
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 25 19:10:22 GMT 2023 - 451 bytes - Viewed (0) -
tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001_py310.py
response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [ { "name": "Portal Gun", "description": "Device to travel through the multi-rick-verse", }, {"name": "Plumbus", "description": None}, ] @needs_py310 @needs_pydanticv2 def test_openapi_schema(client: TestClient) -> None:
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 4.9K bytes - Viewed (0) -
tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002.py
response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [ { "name": "Portal Gun", "description": "Device to travel through the multi-rick-verse", }, {"name": "Plumbus", "description": None}, ] @needs_pydanticv2 def test_openapi_schema(client: TestClient) -> None:
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 25 19:10:22 GMT 2023 - 4.8K bytes - Viewed (0) -
docs/sts/web-identity.py
authorize_url = "http://localhost:8080/auth/realms/minio/protocol/openid-connect/auth" token_url = "http://localhost:8080/auth/realms/minio/protocol/openid-connect/token" # callback url specified when the application was defined callback_uri = "http://localhost:8000/oauth2/callback" # keycloak id and secret client_id = 'account' client_secret = 'daaa3008-80f0-40f7-80d7-e15167531ff0' sts_client = boto3.client( 'sts',
Python - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Wed Jul 28 01:37:51 GMT 2021 - 2.9K bytes - Viewed (1) -
fastapi/exceptions.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 4.9K bytes - Viewed (0)