Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for url (0.14 sec)

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

        ```Python hl_lines="6"
        {!> ../../../docs_src/security/tutorial001.py!}
        ```
    
    !!! tip
        Here `tokenUrl="token"` refers to a relative URL `token` that we haven't created yet. As it's a relative URL, it's equivalent to `./token`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    ### 步骤 3:创建一个*路径操作*
    
    #### 路径
    
    这里的「路径」指的是 URL 中从第一个 `/` 起的后半部分。
    
    所以,在一个这样的 URL 中:
    
    ```
    https://example.com/items/foo
    ```
    
    ...路径会是:
    
    ```
    /items/foo
    ```
    
    !!! info
        「路径」也通常被称为「端点」或「路由」。
    
    开发 API 时,「路径」是用来分离「关注点」和「资源」的主要手段。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 9.2K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/security/first-steps.md

    ```Python hl_lines="6"
    {!../../../docs_src/security/tutorial001.py!}
    ```
    
    !!! tip "Dica"
    	Esse `tokenUrl="token"` se refere a uma URL relativa que nós não criamos ainda. Como é uma URL relativa, é equivalente a `./token`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/security/first-steps.md

        本例中,**FastAPI** 还提供了构建工具。
    
    创建 `OAuth2PasswordBearer` 的类实例时,要传递 `tokenUrl` 参数。该参数包含客户端(用户浏览器中运行的前端) 的 URL,用于发送 `username` 与 `password`,并获取令牌。
    
    ```Python hl_lines="6"
    {!../../../docs_src/security/tutorial001.py!}
    ```
    
    !!! tip "提示"
    
        在此,`tokenUrl="token"` 指向的是暂未创建的相对 URL `token`。这个相对 URL 相当于 `./token`。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/first-steps.md

    ```
    
    </div>
    
    ### Passo 3: crie uma *rota*
    
    #### Rota
    
    "Rota" aqui se refere à última parte da URL, começando do primeiro `/`.
    
    Então, em uma URL como:
    
    ```
    https://example.com/items/foo
    ```
    
    ...a rota seria:
    
    ```
    /items/foo
    ```
    
    !!! info "Informação"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/security/first-steps.md

    👉 🔢 🚫 ✍ 👈 🔗 / *➡ 🛠️*, ✋️ 📣 👈 📛 `/token` 🔜 1️⃣ 👈 👩‍💻 🔜 ⚙️ 🤚 🤝. 👈 ℹ ⚙️ 🗄, &amp; ⤴️ 🎓 🛠️ 🧾 ⚙️.
    
    👥 🔜 🔜 ✍ ☑ ➡ 🛠️.
    
    !!! info
        🚥 👆 📶 ⚠ "✍" 👆 💪 👎 👗 🔢 📛 `tokenUrl` ↩️ `token_url`.
    
        👈 ↩️ ⚫️ ⚙️ 🎏 📛 🗄 🔌. 👈 🚥 👆 💪 🔬 🌅 🔃 🙆 👫 💂‍♂ ⚖ 👆 💪 📁 &amp; 📋 ⚫️ 🔎 🌖 ℹ 🔃 ⚫️.
    
    `oauth2_scheme` 🔢 👐 `OAuth2PasswordBearer`, ✋️ ⚫️ "🇧🇲".
    
    ⚫️ 💪 🤙:
    
    ```Python
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/first-steps.md

    ```
    
    </div>
    
    ### Step 3: create a *path operation*
    
    #### Path
    
    "Path" here refers to the last part of the URL starting from the first `/`.
    
    So, in a URL like:
    
    ```
    https://example.com/items/foo
    ```
    
    ...the path would be:
    
    ```
    /items/foo
    ```
    
    !!! info
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 9.2K bytes
    - Viewed (0)
Back to top