Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for example (0.26 sec)

  1. fastapi/applications.py

                    **Example**
    
                    ```python
                    from fastapi import FastAPI
    
                    app = FastAPI(
                        servers=[
                            {"url": "https://stag.example.com", "description": "Staging environment"},
                            {"url": "https://prod.example.com", "description": "Production environment"},
                        ]
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  2. fastapi/routing.py

        `APIRouter` class, used to group *path operations*, for example to structure
        an app in multiple files. It would then be included in the `FastAPI` app, or
        in another `APIRouter` (ultimately included in the app).
    
        Read more about it in the
        [FastAPI docs for Bigger Applications - Multiple Files](https://fastapi.tiangolo.com/tutorial/bigger-applications/).
    
        ## Example
    
        ```python
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top