- Sort Score
- Result 10 results
- Languages All
Results 341 - 350 of 593 for item_2 (0.08 sec)
-
tests/test_tutorial/test_handling_errors/test_tutorial001.py
def test_get_item(): response = client.get("/items/foo") assert response.status_code == 200, response.text assert response.json() == {"item": "The Foo Wrestlers"} def test_get_item_not_found(): response = client.get("/items/bar") assert response.status_code == 404, response.text assert response.headers.get("x-error") is None assert response.json() == {"detail": "Item not found"} def test_openapi_schema():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.2K bytes - Viewed (0) -
docs/fr/docs/python-types.md
/// Ce qui signifie : "la variable `items` est une `list`, et chacun de ses éléments a pour type `str`. En faisant cela, votre éditeur pourra vous aider, même pendant que vous traitez des éléments de la liste. <img src="/img/python-types/image05.png"> Sans types, c'est presque impossible à réaliser. Vous remarquerez que la variable `item` n'est qu'un des éléments de la list `items`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:21:34 UTC 2024 - 10K 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():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 167 bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial005.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/", openapi_extra={"x-aperture-labs-portal": "blue"}) async def read_items():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jul 29 20:01:13 UTC 2021 - 180 bytes - Viewed (0) -
docs/de/docs/tutorial/path-params-numeric-validations.md
/// ## Metadaten deklarieren Sie können die gleichen Parameter deklarieren wie für `Query`. Um zum Beispiel einen `title`-Metadaten-Wert für den Pfad-Parameter `item_id` zu deklarieren, schreiben Sie: //// tab | Python 3.10+ ```Python hl_lines="10" {!> ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py!} ``` //// //// tab | Python 3.9+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.1K bytes - Viewed (0) -
tests/test_tutorial/test_additional_responses/test_tutorial003.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 4.5K bytes - Viewed (0) -
docs/pt/docs/tutorial/handling-errors.md
{ "item": "The Foo Wrestlers" } ``` Mas se o cliente faz uma requisição para `http://example.com/items/bar` (ou seja, um não existente `item_id "bar"`), esse cliente receberá um HTTP status code 404 (o erro "não encontrado" — *not found error*), e uma resposta JSON: ```JSON { "detail": "Item not found" } ``` /// tip | "Dica"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10K bytes - Viewed (0) -
docs/en/docs/advanced/generate-clients.md
## FastAPI App with Tags In many cases your FastAPI app will be bigger, and you will probably use tags to separate different groups of *path operations*. For example, you could have a section for **items** and another section for **users**, and they could be separated by tags: //// tab | Python 3.9+ ```Python hl_lines="21 26 34" {!> ../../docs_src/generate_clients/tutorial002_py39.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.7K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial004_py39.py
return client @needs_py39 @pytest.mark.parametrize( "url,data", [ ("/items/foo", {"name": "Foo", "price": 50.2}), ( "/items/bar", {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2}, ), ( "/items/baz", { "name": "Baz", "description": None,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 5.2K bytes - Viewed (0) -
docs/pt/docs/advanced/dataclasses.md
3. A dataclass `Author` inclui uma lista de dataclasses `Item`. 4. A dataclass `Author` é usada como o parâmetro `response_model`. 5. Você pode usar outras anotações de tipo padrão com dataclasses como o corpo da requisição. Neste caso, é uma lista de dataclasses `Item`. 6. Aqui estamos retornando um dicionário que contém `items`, que é uma lista de dataclasses.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Oct 22 17:33:53 UTC 2024 - 4.4K bytes - Viewed (0)