Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for APIRoute (0.07 sec)

  1. fastapi/openapi/utils.py

    
    def generate_operation_summary(*, route: routing.APIRoute, method: str) -> str:
        if route.summary:
            return route.summary
        return route.name.replace("_", " ").title()
    
    
    def get_openapi_operation_metadata(
        *, route: routing.APIRoute, method: str, operation_ids: set[str]
    ) -> dict[str, Any]:
        operation: dict[str, Any] = {}
        if route.tags:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/generate-clients.md

    FastAPI uses a **unique ID** for each *path operation*, which is used for the **operation ID** and also for the names of any needed custom models, for requests or responses.
    
    You can customize that function. It takes an `APIRoute` and outputs a string.
    
    For example, here it is using the first tag (you will probably have only one tag) and the *path operation* name (the function name).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.1K bytes
    - Viewed (1)
  3. docs/ru/docs/advanced/path-operation-advanced-configuration.md

    Если вы хотите использовать имена функций ваших API в качестве `operationId`, вы можете пройти по всем из них и переопределить `operation_id` каждой *операции пути* с помощью их `APIRoute.name`.
    
    Делать это следует после добавления всех *операций пути*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py39.py hl[2, 12:21, 24] *}
    
    /// tip | Совет
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. docs/ru/docs/advanced/generate-clients.md

    FastAPI использует **уникальный ID** для каждой *операции пути*, который применяется для **ID операции**, а также для имён любых необходимых пользовательских моделей запросов или ответов.
    
    Вы можете кастомизировать эту функцию. Она принимает `APIRoute` и возвращает строку.
    
    Например, здесь берётся первый тег (скорее всего у вас один тег) и имя *операции пути* (имя функции).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. docs/es/docs/advanced/generate-clients.md

    FastAPI usa un **ID único** para cada *path operation*, se usa para el **operation ID** y también para los nombres de cualquier modelo personalizado necesario, para requests o responses.
    
    Puedes personalizar esa función. Toma un `APIRoute` y retorna un string.
    
    Por ejemplo, aquí está usando el primer tag (probablemente tendrás solo un tag) y el nombre de la *path operation* (el nombre de la función).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/generate-clients.md

    Sie können diese Funktion anpassen. Sie nimmt ein `APIRoute` und gibt einen String zurück.
    
    Hier verwendet sie beispielsweise den ersten Tag (Sie werden wahrscheinlich nur einen Tag haben) und den *Pfadoperation*-Namen (den Funktionsnamen).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. docs/pt/docs/advanced/generate-clients.md

    Você pode personalizar essa função. Ela recebe uma `APIRoute` e retorna uma string.
    
    Por exemplo, aqui está usando a primeira tag (você provavelmente terá apenas uma tag) e o nome da *operação de rota* (o nome da função).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top