Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 658 for item_a (0.07 seconds)

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

  1. tests/test_security_scopes_sub_dependency.py

            }
    
        app = FastAPI()
    
        @app.get("/")
        def path_operation(
            user_me: Annotated[dict, Depends(get_user_me)],
            user_items: Annotated[dict, Security(get_user_items, scopes=["items"])],
        ):
            return {
                "user_me": user_me,
                "user_items": user_items,
            }
    
        return app
    
    
    @pytest.fixture(name="client")
    def client_fixture(app: FastAPI):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  2. tests/test_additional_responses_custom_model_in_callback.py

                            "properties": {
                                "detail": {
                                    "title": "Detail",
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ValidationError"
                                    },
                                }
                            },
                        },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  3. docs/ru/docs/advanced/behind-a-proxy.md

    </div>
    
    ### Редиректы с HTTPS { #redirects-with-https }
    
    Например, вы объявили операцию пути `/items/`:
    
    {* ../../docs_src/behind_a_proxy/tutorial001_01_py39.py hl[6] *}
    
    Если клиент обратится к `/items`, по умолчанию произойдёт редирект на `/items/`.
    
    Но до установки опции `--forwarded-allow-ips` редирект может вести на `http://localhost:8000/items/`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/dependencies/index.md

    Por exemplo, vamos supor que você possua 4 endpoints na sua API (*operações de rota*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    Você poderia adicionar diferentes requisitos de permissão para cada um deles utilizando apenas dependências e sub-dependências:
    
    ```mermaid
    graph TB
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  5. tests/test_tutorial/test_additional_status_codes/test_tutorial001.py

        return client
    
    
    def test_update(client: TestClient):
        response = client.put("/items/foo", json={"name": "Wrestlers"})
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Wrestlers", "size": None}
    
    
    def test_create(client: TestClient):
        response = client.put("/items/red", json={"name": "Chillies"})
        assert response.status_code == 201, response.text
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 993 bytes
    - Click Count (0)
  6. scripts/playwright/header_param_models/image01.py

        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_role("button", name="GET /items/ Read Items").click()
        page.get_by_role("button", name="Try it out").click()
        # Manually add the screenshot
        page.screenshot(path="docs/en/docs/img/tutorial/header-param-models/image01.png")
    
        # ---------------------
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_response_model/test_tutorial003_01.py

                            "properties": {
                                "detail": {
                                    "title": "Detail",
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/ValidationError"
                                    },
                                }
                            },
                        },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  8. tests/test_request_params/test_file/test_optional_list.py

            "properties": {
                "p": {
                    "anyOf": [
                        {
                            "type": "array",
                            "items": {"type": "string", "format": "binary"},
                        },
                        {"type": "null"},
                    ],
                    "title": "P",
                }
            },
            "title": body_model_name,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  9. docs/ja/docs/deployment/docker.md

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    同じプロジェクト・ディレクトリに`Dockerfile`というファイルを作成します:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Aug 12 21:47:53 GMT 2024
    - 44.3K bytes
    - Click Count (0)
  10. tests/test_webhooks_security.py

                }
            },
            "components": {
                "schemas": {
                    "HTTPValidationError": {
                        "properties": {
                            "detail": {
                                "items": {"$ref": "#/components/schemas/ValidationError"},
                                "type": "array",
                                "title": "Detail",
                            }
                        },
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 4.5K bytes
    - Click Count (0)
Back to Top