Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 215 for operasyon (0.23 sec)

  1. docs/ja/docs/tutorial/middleware.md

    # ミドルウェア
    
    **FastAPI** アプリケーションにミドルウェアを追加できます。
    
    「ミドルウェア」は、すべての**リクエスト**に対して、それがあらゆる特定の*path operation*によって処理される前に機能する関数です。また、すべての**レスポンス**に対して、それを返す前に機能します。
    
    * ミドルウェアはアプリケーションに届いたそれぞれの**リクエスト**を受け取ります。
    * その後、その**リクエスト**に対して何かを実行したり、必要なコードを実行したりできます。
    * 次に、アプリケーションの残りの部分に**リクエスト**を渡して (*path operation* によって) 処理させます。
    * 次に、ミドルウェアはアプリケーション (の *path operation*) によって生成された**レスポンス**を受け取ります。
    * その**レスポンス**に対して何かを実行したり、必要なコードを実行したりできます。
    * そして、**レスポンス**を返します。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/first-steps.md

    !!! info
        Ein „Pfad“ wird häufig auch als „Endpunkt“ oder „Route“ bezeichnet.
    
    Bei der Erstellung einer API ist der „Pfad“ die wichtigste Möglichkeit zur Trennung von „Anliegen“ und „Ressourcen“.
    
    #### OperationOperation“ bezieht sich hier auf eine der HTTP-„Methoden“.
    
    Eine von diesen:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ... und die etwas Exotischeren:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:16:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-model.md

    # Response Model - Return Type
    
    You can declare the type used for the response by annotating the *path operation function* **return type**.
    
    You can use **type annotations** the same way you would for input data in function **parameters**, you can use Pydantic models, lists, dictionaries, scalar values like integers, booleans, etc.
    
    === "Python 3.10+"
    
        ```Python hl_lines="16  21"
        {!> ../../../docs_src/response_model/tutorial001_01_py310.py!}
        ```
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/security/get-current-user.md

        ```Python hl_lines="30-32"
        {!> ../../../docs_src/security/tutorial002.py!}
        ```
    
    ## Recap
    
    You can now get the current user directly in your *path operation function*.
    
    We are already halfway there.
    
    We just need to add a *path operation* for the user/client to actually send the `username` and `password`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/response-model.md

    !!! note "備考"
        `response_model`は「デコレータ」メソッド(`get`、`post`など)のパラメータであることに注意してください。すべてのパラメータやボディのように、*path operation関数* のパラメータではありません。
    
    Pydanticモデルの属性に対して宣言するのと同じ型を受け取るので、Pydanticモデルになることもできますが、例えば、`List[Item]`のようなPydanticモデルの`list`になることもできます。
    
    FastAPIは`response_model`を使って以下のことをします:
    
    * 出力データを型宣言に変換します。
    * データを検証します。
    * OpenAPIの *path operation* で、レスポンス用のJSON Schemaを追加します。
    * 自動ドキュメントシステムで使用されます。
    
    しかし、最も重要なのは:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/dependencies/global-dependencies.md

    Для некоторых типов приложений может потребоваться добавить зависимости ко всему приложению.
    
    Подобно тому, как вы можете [добавлять зависимости через параметр `dependencies` в *декораторах операций пути*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, вы можете добавлять зависимости сразу ко всему `FastAPI` приложению.
    
    В этом случае они будут применяться ко всем *операциям пути* в приложении:
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_additional_responses/test_tutorial001.py

    from docs_src.additional_responses.tutorial001 import app
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_not_found():
        response = client.get("/items/bar")
        assert response.status_code == 404, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 4.3K bytes
    - Viewed (1)
  8. tests/test_tutorial/test_additional_responses/test_tutorial002.py

    from docs_src.additional_responses.tutorial002 import app
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_img():
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_additional_responses/test_tutorial003.py

    from docs_src.additional_responses.tutorial003 import app
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_not_found():
        response = client.get("/items/bar")
        assert response.status_code == 404, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/path-params.md

    Similarly, you cannot redefine a path operation:
    
    ```Python hl_lines="6  11"
    {!../../../docs_src/path_params/tutorial003b.py!}
    ```
    
    The first one will always be used since the path matches first.
    
    ## Predefined values
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
Back to top