Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for iteration (0.16 sec)

  1. docs/em/docs/advanced/path-operation-advanced-configuration.md

        ๐Ÿšฅ ๐Ÿ‘† ๐Ÿšซ "๐Ÿ•ด" ๐Ÿ—„, ๐Ÿ‘† ๐ŸŽฒ ๐Ÿšซ ๐Ÿ’ช ๐Ÿ‘‰.
    
    ๐Ÿ‘† ๐Ÿ’ช โš’ ๐Ÿ—„ `operationId` โš™๏ธ ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ* โฎ๏ธ ๐Ÿ”ข `operation_id`.
    
    ๐Ÿ‘† ๐Ÿ”œ โœ”๏ธ โš’ ๐Ÿ’ญ ๐Ÿ‘ˆ โšซ๏ธ ๐Ÿ˜ ๐Ÿ”  ๐Ÿ› ๏ธ.
    
    ```Python hl_lines="6"
    {!../../../docs_src/path_operation_advanced_configuration/tutorial001.py!}
    ```
    
    ### โš™๏ธ *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* ๐Ÿ“› {
    
    ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ’š โš™๏ธ ๐Ÿ‘† ๐Ÿ”—' ๐Ÿ”ข ๐Ÿ“› `operationId`โ“‚, ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ” ๐Ÿคญ ๐ŸŒ ๐Ÿ‘ซ & ๐Ÿ” ๐Ÿ”  *โžก ๐Ÿ› ๏ธ* `operation_id` โš™๏ธ ๐Ÿ‘ซ `APIRoute.name`.
    
    ๐Ÿ‘† ๐Ÿ”œ โšซ๏ธ โฎ๏ธ โŽ ๐ŸŒ ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ*.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. docs/de/docs/project-generation.md

    ### Full Stack FastAPI PostgreSQL โ€“ Funktionen
    
    * Vollstรคndige **Docker**-Integration (Docker-basiert).
    * Docker-Schwarmmodus-Deployment.
    * **Docker Compose**-Integration und Optimierung fรผr die lokale Entwicklung.
    * **Produktionsbereit** Python-Webserver, verwendet Uvicorn und Gunicorn.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:14:36 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/first-steps.md

        It is the "**path operation decorator**".
    
    You can also use the other operations:
    
    * `@app.post()`
    * `@app.put()`
    * `@app.delete()`
    
    And the more exotic ones:
    
    * `@app.options()`
    * `@app.head()`
    * `@app.patch()`
    * `@app.trace()`
    
    !!! tip
        You are free to use each operation (HTTP method) as you wish.
    
    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)
  4. docs_src/generate_clients/tutorial004.js

            const operation = pathData[method]
            if (operation.tags && operation.tags.length > 0) {
              const tag = operation.tags[0]
              const operationId = operation.operationId
              const toRemove = `${tag}-`
              if (operationId.startsWith(toRemove)) {
                const newOperationId = operationId.substring(toRemove.length)
                operation.operationId = newOperationId
              }
    JavaScript
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 14 11:40:05 GMT 2024
    - 1K bytes
    - Viewed (0)
  5. fastapi/utils.py

        operation_id = f"{operation_id}_{method.lower()}"
        return operation_id
    
    
    def generate_unique_id(route: "APIRoute") -> str:
        operation_id = f"{route.name}{route.path_format}"
        operation_id = re.sub(r"\W", "_", operation_id)
        assert route.methods
        operation_id = f"{operation_id}_{list(route.methods)[0].lower()}"
        return operation_id
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/generate-clients.md

    ```
    
    ...that's because the client generator uses the OpenAPI internal **operation ID** for each *path operation*.
    
    OpenAPI requires that each operation ID is unique across all the *path operations*, so FastAPI uses the **function name**, the **path**, and the **HTTP method/operation** to generate that operation ID, because that way it can make sure that the operation IDs are unique.
    
    But I'll show you how to improve that next. ๐Ÿค“
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. docs/en/docs/reference/background.md

    # Background Tasks - `BackgroundTasks`
    
    You can declare a parameter in a *path operation function* or dependency function with the type `BackgroundTasks`, and then you can use it to schedule the execution of background tasks after the response is sent.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import BackgroundTasks
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 377 bytes
    - Viewed (0)
Back to top