Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for an (0.16 sec)

  1. docs/ru/docs/tutorial/security/first-steps.md

    ## Создание `main.py`
    
    Скопируйте пример в файл `main.py`:
    
    === "Python 3.9+"
    
        ```Python
        {!> ../../../docs_src/security/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python
        {!> ../../../docs_src/security/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ без Annotated"
    
        !!! tip "Подсказка"
            Предпочтительнее использовать версию с аннотацией, если это возможно.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/first-steps.md

    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    El `@app.get("/")` le dice a **FastAPI** que la función que tiene justo debajo está a cargo de manejar los requests que van a:
    
    * el path `/`
    * usando una <abbr title="an HTTP GET method">operación <code>get</code></abbr>
    
    !!! info "Información sobre `@decorator`"
        Esa sintaxis `@algo` se llama un "decorador" en Python.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/security/first-steps.md

    ## `main.py` erstellen
    
    Kopieren Sie das Beispiel in eine Datei `main.py`:
    
    === "Python 3.9+"
    
        ```Python
        {!> ../../../docs_src/security/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python
        {!> ../../../docs_src/security/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:07:08 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  4. docs/vi/docs/tutorial/first-steps.md

    ```Python hl_lines="6"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    `@app.get("/")` nói **FastAPI** rằng hàm bên dưới có trách nhiệm xử lí request tới:
    
    * đường dẫn `/`
    * sử dụng một <abbr title="an HTTP GET method">toán tử<code>get</code></abbr>
    
    !!! info Thông tin về "`@decorator`"
        Cú pháp `@something` trong Python được gọi là một "decorator".
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Sep 02 15:44:17 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/first-steps.md

    So, in a URL like:
    
    ```
    https://example.com/items/foo
    ```
    
    ...the path would be:
    
    ```
    /items/foo
    ```
    
    !!! info
        A "path" is also commonly called an "endpoint" or a "route".
    
    While building an API, the "path" is the main way to separate "concerns" and "resources".
    
    #### Operation
    
    "Operation" here refers to one of the HTTP "methods".
    
    One of:
    
    * `POST`
    * `GET`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/first-steps.md

    ```Python hl_lines="6"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Das `@app.get("/")` sagt **FastAPI**, dass die Funktion direkt darunter für die Bearbeitung von Anfragen zuständig ist, die an:
    
     * den Pfad `/`
     * unter der Verwendung der <abbr title="eine HTTP GET Methode"><code>get</code>-Operation</abbr> gehen
    
    !!! info "`@decorator` Information"
    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)
  7. docs/ja/docs/tutorial/first-steps.md

    「**オペレーションズ**」とも呼ぶことにします。
    
    #### *パスオペレーションデコレータ*を定義
    
    ```Python hl_lines="6"
    {!../../../docs_src/first_steps/tutorial001.py!}
    ```
    `@app.get("/")`は直下の関数が下記のリクエストの処理を担当することを**FastAPI**に伝えます:
    
    * パス `/`
    * <abbr title="an HTTP GET method"><code>get</code> オペレーション</abbr>
    
    !!! info "`@decorator` について"
        Pythonにおける`@something`シンタックスはデコレータと呼ばれます。
    
        「デコレータ」は関数の上に置きます。かわいらしい装飾的な帽子のようです(この用語の由来はそこにあると思います)。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top