Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 85 for operation_id (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. fastapi/utils.py

            stacklevel=2,
        )
        operation_id = f"{name}{path}"
        operation_id = re.sub(r"\W", "_", operation_id)
        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
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  2. tests/test_request_params/test_form/test_optional_str.py

    # Without aliases
    
    
    @app.post("/optional-str", operation_id="optional_str")
    async def read_optional_str(p: Annotated[str | None, Form()] = None):
        return {"p": p}
    
    
    class FormModelOptionalStr(BaseModel):
        p: str | None = None
    
    
    @app.post("/model-optional-str", operation_id="model_optional_str")
    async def read_model_optional_str(p: Annotated[FormModelOptionalStr, Form()]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  3. docs/zh/docs/advanced/path-operation-advanced-configuration.md

    ## OpenAPI 的 operationId { #openapi-operationid }
    
    /// warning
    
    如果你并非 OpenAPI 的“专家”,你可能不需要这部分内容。
    
    ///
    
    你可以在 *路径操作* 中通过参数 `operation_id` 设置要使用的 OpenAPI `operationId`。
    
    务必确保每个操作的 `operation_id` 都是唯一的。
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *}
    
    ### 使用 *路径操作函数* 的函数名作为 operationId { #using-the-path-operation-function-name-as-the-operationid }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  4. docs/en/docs/advanced/path-operation-advanced-configuration.md

    # Path Operation Advanced Configuration { #path-operation-advanced-configuration }
    
    ## OpenAPI operationId { #openapi-operationid }
    
    /// warning
    
    If you are not an "expert" in OpenAPI, you probably don't need this.
    
    ///
    
    You can set the OpenAPI `operationId` to be used in your *path operation* with the parameter `operation_id`.
    
    You would have to make sure that it is unique for each operation.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  5. docs_src/path_operation_advanced_configuration/tutorial001_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/", operation_id="some_specific_id_you_define")
    async def read_items():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 167 bytes
    - Click Count (0)
  6. docs/ko/docs/advanced/path-operation-advanced-configuration.md

    ## OpenAPI operationId { #openapi-operationid }
    
    /// warning | 경고
    
    OpenAPI “전문가”가 아니라면, 아마 이 내용은 필요하지 않을 것입니다.
    
    ///
    
    매개변수 `operation_id`를 사용해 *경로 처리*에 사용할 OpenAPI `operationId`를 설정할 수 있습니다.
    
    각 작업마다 고유하도록 보장해야 합니다.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  7. docs/ja/docs/advanced/path-operation-advanced-configuration.md

    ## OpenAPI operationId { #openapi-operationid }
    
    /// warning | 注意
    
    OpenAPIの「エキスパート」でなければ、これはおそらく必要ありません。
    
    ///
    
    *path operation* で `operation_id` パラメータを利用することで、OpenAPIの `operationId` を設定できます。
    
    各オペレーションで一意になるようにする必要があります。
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial001_py310.py hl[6] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  8. docs/tr/docs/advanced/path-operation-advanced-configuration.md

    # Path Operation İleri Düzey Yapılandırma { #path-operation-advanced-configuration }
    
    ## OpenAPI operationId { #openapi-operationid }
    
    /// warning | Uyarı
    
    OpenAPI konusunda "uzman" değilseniz, muhtemelen buna ihtiyacınız yok.
    
    ///
    
    *path operation*’ınızda kullanılacak OpenAPI `operationId` değerini `operation_id` parametresiyle ayarlayabilirsiniz.
    
    Bunun her operation için benzersiz olduğundan emin olmanız gerekir.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  9. docs_src/path_operation_advanced_configuration/tutorial002_py310.py

        names.
    
        Should be called only after all routes have been added.
        """
        for route in app.routes:
            if isinstance(route, APIRoute):
                route.operation_id = route.name  # in this case, 'read_items'
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 572 bytes
    - Click Count (0)
  10. docs/de/docs/advanced/path-operation-advanced-configuration.md

    ### Verwendung des Namens der *Pfadoperation-Funktion* als operationId { #using-the-path-operation-function-name-as-the-operationid }
    
    Wenn Sie die Funktionsnamen Ihrer API als `operationId`s verwenden möchten, können Sie über alle iterieren und die `operation_id` jeder *Pfadoperation* mit deren `APIRoute.name` überschreiben.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 8.2K bytes
    - Click Count (0)
Back to Top