Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for use_route_names_as_operation_ids (0.56 seconds)

  1. docs_src/path_operation_advanced_configuration/tutorial002_py39.py

    from fastapi import FastAPI
    from fastapi.routing import APIRoute
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items():
        return [{"item_id": "Foo"}]
    
    
    def use_route_names_as_operation_ids(app: FastAPI) -> None:
        """
        Simplify operation IDs so that generated API clients have simpler function
        names.
    
        Should be called only after all routes have been added.
        """
        for route in app.routes:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 572 bytes
    - Click Count (0)
Back to Top