Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 208 for url_lines (0.07 sec)

  1. docs/uk/docs/index.md

    ```
    
    <details markdown="1">
    <summary>Або використайте <code>async def</code>...</summary>
    
    Якщо ваш код використовує `async` / `await`, скористайтеся `async def`:
    
    ```Python hl_lines="9  14"
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    async def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/response-model.md

    ```Python hl_lines="3 5"
    {
    "name": "Bar",
    "description": "The bartenders",
    "price": 62,
    "tax": 20.2
    }
    ```
    
    eles serão incluídos na resposta.
    
    #### Dados com os mesmos valores que os padrões
    
    Se os dados tiverem os mesmos valores que os padrões, como o item com ID `baz`:
    
    ```Python hl_lines="3 5-6"
    {
    "name": "Baz",
    "description": None,
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Nov 26 22:51:05 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. docs/es/docs/async.md

    ```Python hl_lines="1"
    async def get_burgers(number: int):
        # Hacer algunas cosas asíncronas para crear las hamburguesas
        return burgers
    ```
    
    ...en lugar de `def`:
    
    ```Python hl_lines="2"
    # Esto no es asíncrono
    def get_sequential_burgers(number: int):
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 24.7K bytes
    - Viewed (0)
  4. docs/fr/docs/advanced/additional-responses.md

    ///
    
    Les réponses générées au format OpenAPI pour cette *opération de chemin* seront :
    
    ```JSON hl_lines="3-12"
    {
        "responses": {
            "404": {
                "description": "Additional Response",
                "content": {
                    "application/json": {
                        "schema": {
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. docs/em/docs/async.md

    `await` 👷, ⚫️ ✔️ 🔘 🔢 👈 🐕‍🦺 👉 🔀. 👈, 👆 📣 ⚫️ ⏮️ `async def`:
    
    ```Python hl_lines="1"
    async def get_burgers(number: int):
        # Do some asynchronous stuff to create the burgers
        return burgers
    ```
    
    ...↩️ `def`:
    
    ```Python hl_lines="2"
    # This is not asynchronous
    def get_sequential_burgers(number: int):
        # Do some sequential stuff to create the burgers
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/behind-a-proxy.md

    ///
    
    The docs UI would also need the OpenAPI schema to declare that this API `server` is located at `/api/v1` (behind the proxy). For example:
    
    ```JSON hl_lines="4-8"
    {
        "openapi": "3.1.0",
        // More stuff here
        "servers": [
            {
                "url": "/api/v1"
            }
        ],
        "paths": {
                // More stuff here
        }
    }
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 19:34:08 UTC 2025
    - 16K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/additional-responses.md

    ///
    
    Die generierten Responses in der OpenAPI für diese *Pfadoperation* lauten:
    
    ```JSON hl_lines="3-12"
    {
        "responses": {
            "404": {
                "description": "Additional Response",
                "content": {
                    "application/json": {
                        "schema": {
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:53:31 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. docs/es/docs/advanced/additional-responses.md

    ///
    
    Los responses generadas en el OpenAPI para esta *path operation* serán:
    
    ```JSON hl_lines="3-12"
    {
        "responses": {
            "404": {
                "description": "Additional Response",
                "content": {
                    "application/json": {
                        "schema": {
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. docs/em/docs/advanced/generate-clients.md

    ```
    
    </div>
    
    #### 🏗 👩‍💻 📟
    
    🏗 👩‍💻 📟 👆 💪 ⚙️ 📋 ⏸ 🈸 `openapi-ts` 👈 🔜 🔜 ❎.
    
    ↩️ ⚫️ ❎ 🇧🇿 🏗, 👆 🎲 🚫🔜 💪 🤙 👈 📋 🔗, ✋️ 👆 🔜 🚮 ⚫️ 🔛 👆 `package.json` 📁.
    
    ⚫️ 💪 👀 💖 👉:
    
    ```JSON  hl_lines="7"
    {
      "name": "frontend-app",
      "version": "1.0.0",
      "description": "",
      "main": "index.js",
      "scripts": {
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. docs/zh-hant/docs/async.md

    然後,使用 `async def` 宣告你的*路徑操作函式*:
    
    
    ```Python hl_lines="2"
    @app.get('/')
    async def read_results():
        results = await some_library()
        return results
    ```
    
    /// note | 注意
    
    你只能在 `async def` 建立的函式內使用 `await`。
    
    ///
    
    ---
    
    如果你使用的是第三方函式庫並且它需要與某些外部資源(例如資料庫、API、檔案系統等)進行通訊,但不支援 `await`(目前大多數資料庫函式庫都是這樣),在這種情況下,你可以像平常一樣使用 `def` 宣告*路徑操作函式*,如下所示:
    
    ```Python hl_lines="2"
    @app.get('/')
    def results():
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 21.1K bytes
    - Viewed (0)
Back to top