- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for devices (0.19 sec)
-
docs/es/docs/tutorial/cookie-params.md
# Parámetros de Cookie Puedes definir parámetros de Cookie de la misma manera que defines parámetros de `Query` y `Path`. ## Importar `Cookie` Primero importa `Cookie`: === "Python 3.10+" ```Python hl_lines="3" {!> ../../../docs_src/cookie_params/tutorial001_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="3" {!> ../../../docs_src/cookie_params/tutorial001_an_py39.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 19:30:26 UTC 2024 - 2.4K 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:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 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:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Aug 25 19:10:22 UTC 2023 - 4.8K bytes - Viewed (0) -
docs_src/separate_openapi_schemas/tutorial002_py39.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"),
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Aug 25 19:10:22 UTC 2023 - 518 bytes - Viewed (0) -
tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002_py39.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_py39 @needs_pydanticv2 def test_openapi_schema(client: TestClient) -> None:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Aug 25 19:10:22 UTC 2023 - 4.9K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
# Handling Errors There are many situations in which you need to notify an error to a client that is using your API. This client could be a browser with a frontend, a code from someone else, an IoT device, etc. You could need to tell the client that: * The client doesn't have enough privileges for that operation. * The client doesn't have access to that resource. * The item the client was trying to access doesn't exist. * etc.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 18 23:43:13 UTC 2024 - 9.1K bytes - Viewed (0)