Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 761 - 770 of 1,227 for item (0.03 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/fr/docs/advanced/behind-a-proxy.md

    Par exemple, disons que vous définissez un *chemin d'accès* `/items/` :
    
    {* ../../docs_src/behind_a_proxy/tutorial001_01_py310.py hl[6] *}
    
    Si le client essaie d'aller à `/items`, par défaut, il sera redirigé vers `/items/`.
    
    Mais avant de définir l'option de CLI `--forwarded-allow-ips`, il pourrait rediriger vers `http://localhost:8000/items/`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  2. docs/pt/docs/advanced/behind-a-proxy.md

    Por exemplo, suponha que você defina uma *operação de rota* `/items/`:
    
    {* ../../docs_src/behind_a_proxy/tutorial001_01_py310.py hl[6] *}
    
    Se o cliente tentar ir para `/items`, por padrão, ele seria redirecionado para `/items/`.
    
    Mas antes de definir a opção de linha de comando `--forwarded-allow-ips`, poderia redirecionar para `http://localhost:8000/items/`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  3. tests/test_forms_single_param.py

                        },
                        "HTTPValidationError": {
                            "properties": {
                                "detail": {
                                    "items": {
                                        "$ref": "#/components/schemas/ValidationError"
                                    },
                                    "type": "array",
                                    "title": "Detail",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  4. tests/test_reponse_set_reponse_code_empty.py

                            "properties": {
                                "detail": {
                                    "title": "Detail",
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ValidationError"
                                    },
                                }
                            },
                        },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  5. tests/test_include_route.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    router = APIRouter()
    
    
    @router.route("/items/")
    def read_items(request: Request):
        return JSONResponse({"hello": "world"})
    
    
    app.include_router(router)
    
    client = TestClient(app)
    
    
    def test_sub_router():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 496 bytes
    - Click Count (0)
  6. docs/uk/docs/tutorial/path-params.md

    Значення параметра шляху `item_id` буде передано у вашу функцію як аргумент `item_id`.
    
    Отже, якщо ви запустите цей приклад і перейдете за посиланням [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo), то побачите відповідь:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Параметри шляху з типами { #path-parameters-with-types }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 14K bytes
    - Click Count (0)
  7. tests/test_request_params/test_file/test_list.py

        body_model_name = get_body_model_name(openapi, path)
    
        assert app.openapi()["components"]["schemas"][body_model_name] == {
            "properties": {
                "p": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "contentMediaType": "application/octet-stream",
                    },
                    "title": "P",
                },
            },
            "required": ["p"],
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  8. tests/test_request_params/test_header/test_list.py

            [
                {
                    "required": True,
                    "schema": {
                        "title": "P",
                        "type": "array",
                        "items": {"type": "string"},
                    },
                    "name": "p",
                    "in": "header",
                }
            ]
        )
    
    
    @pytest.mark.parametrize(
        "path",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 11.3K bytes
    - Click Count (0)
  9. docs_src/query_params_str_validations/tutorial001_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str | None = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 239 bytes
    - Click Count (0)
  10. docs_src/query_params_str_validations/tutorial006_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: str = Query(min_length=3)):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 254 bytes
    - Click Count (0)
Back to Top