Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 42 for APIRoute (0.05 seconds)

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

  1. docs/es/docs/how-to/custom-request-and-route.md

    # Clase personalizada de Request y APIRoute { #custom-request-and-apiroute-class }
    
    En algunos casos, puede que quieras sobrescribir la lógica utilizada por las clases `Request` y `APIRoute`.
    
    En particular, esta puede ser una buena alternativa a la lógica en un middleware.
    
    Por ejemplo, si quieres leer o manipular el request body antes de que sea procesado por tu aplicación.
    
    /// danger | Advertencia
    
    Esta es una funcionalidad "avanzada".
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  2. 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:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  3. docs_src/generate_clients/tutorial003_py310.py

    from fastapi import FastAPI
    from fastapi.routing import APIRoute
    from pydantic import BaseModel
    
    
    def custom_generate_unique_id(route: APIRoute):
        return f"{route.tags[0]}-{route.name}"
    
    
    app = FastAPI(generate_unique_id_function=custom_generate_unique_id)
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    class ResponseMessage(BaseModel):
        message: str
    
    
    class User(BaseModel):
        username: str
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 914 bytes
    - Click Count (0)
  4. docs/uk/docs/advanced/path-operation-advanced-configuration.md

    Якщо ви хочете використовувати назви функцій ваших API як `operationId`, ви можете пройтися по всіх них і переписати `operation_id` кожної *операції шляху*, використовуючи їхній `APIRoute.name`.
    
    Зробіть це після додавання всіх *операцій шляху*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *}
    
    /// tip | Порада
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/path-operation-advanced-configuration.md

    If you want to use your APIs' function names as `operationId`s, you can iterate over all of them and override each *path operation's* `operation_id` using their `APIRoute.name`.
    
    You should do it after adding all your *path operations*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *}
    
    /// tip
    
    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)
  6. docs/es/docs/advanced/path-operation-advanced-configuration.md

    Si quieres usar los nombres de las funciones de tus APIs como `operationId`s, puedes iterar sobre todas ellas y sobrescribir el `operation_id` de cada *path operation* usando su `APIRoute.name`.
    
    Deberías hacerlo después de agregar todas tus *path operations*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *}
    
    /// tip | Consejo
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  7. fastapi/applications.py

                    """
                ),
            ] = None,
            generate_unique_id_function: Annotated[
                Callable[[routing.APIRoute], str],
                Doc(
                    """
                    Customize the function used to generate unique IDs for the *path
                    operations* shown in the generated OpenAPI.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  8. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    Se você quiser utilizar o nome das funções da sua API como `operationId`s, você pode iterar sobre todos esses nomes e sobrescrever o `operation_id` em  cada *operação de rota* utilizando o `APIRoute.name` dela.
    
    Você deveria fazer isso depois de adicionar todas as suas *operações de rota*.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *}
    
    /// tip | Dica
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  9. docs/de/docs/advanced/path-operation-advanced-configuration.md

    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.
    
    Sie sollten dies tun, nachdem Sie alle Ihre *Pfadoperationen* hinzugefügt haben.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *}
    
    /// tip | Tipp
    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)
  10. docs/tr/docs/advanced/path-operation-advanced-configuration.md

    API’lerinizin function adlarını `operationId` olarak kullanmak istiyorsanız, hepsini dolaşıp her *path operation*’ın `operation_id` değerini `APIRoute.name` ile override edebilirsiniz.
    
    Bunu, tüm *path operation*’ları ekledikten sonra yapmalısınız.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial002_py310.py hl[2, 12:21, 24] *}
    
    /// tip | İpucu
    
    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)
Back to Top