Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for observers (0.05 sec)

  1. tests/test_openapi_servers.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI(
        servers=[
            {"url": "/", "description": "Default, relative server"},
            {
                "url": "http://staging.localhost.tiangolo.com:8000",
                "description": "Staging but actually localhost still",
            },
            {"url": "https://prod.example.com"},
        ]
    )
    
    
    @app.get("/foo")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/behind-a-proxy.md

    A interface de documentação interagirá com o servidor que você selecionar.
    
    ///
    
    /// note | Detalhes Técnicos
    
    A propriedade `servers` na especificação OpenAPI é opcional.
    
    Se você não especificar o parâmetro `servers` e `root_path` for igual a `/`, a propriedade `servers` no OpenAPI gerado será totalmente omitida por padrão, o que equivale a um único servidor com valor de `url` igual a `/`.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  3. docs/ru/docs/advanced/behind-a-proxy.md

    Интерфейс документации будет взаимодействовать с сервером, который вы выберете.
    
    ///
    
    /// note | Технические детали
    
    Свойство `servers` в спецификации OpenAPI является необязательным.
    
    Если вы не укажете параметр `servers`, а `root_path` равен `/`, то свойство `servers` в сгенерированной схеме OpenAPI по умолчанию будет опущено. Это эквивалентно серверу со значением `url` равным `/`.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/behind-a-proxy.md

    /// tip | Consejo
    
    La UI de los docs interactuará con el server que selecciones.
    
    ///
    
    /// note | Detalles Técnicos
    
    La propiedad `servers` en la especificación de OpenAPI es opcional.
    
    Si no especificas el parámetro `servers` y `root_path` es igual a `/`, la propiedad `servers` en el esquema de OpenAPI generado se omitirá por completo por defecto, lo cual es equivalente a un único server con un valor `url` de `/`.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/behind-a-proxy.md

    ## Additional servers { #additional-servers }
    
    /// warning
    
    This is a more advanced use case. Feel free to skip it.
    
    ///
    
    By default, **FastAPI** will create a `server` in the OpenAPI schema with the URL for the `root_path`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/behind-a-proxy.md

    ///
    
    /// note | Technische Details
    
    Die Eigenschaft `servers` in der OpenAPI-Spezifikation ist optional.
    
    Wenn Sie den Parameter `servers` nicht angeben und `root_path` den Wert `/` hat, wird die Eigenschaft `servers` im generierten OpenAPI-Schema standardmäßig vollständig weggelassen, was dem Äquivalent eines einzelnen Servers mit einem `url`-Wert von `/` entspricht.
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_behind_a_proxy/test_tutorial001.py

                                "content": {"application/json": {"schema": {}}},
                            }
                        },
                    }
                }
            },
            "servers": [{"url": "/api/v1"}],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1K bytes
    - Viewed (0)
  8. docs_src/behind_a_proxy/tutorial003_py39.py

    from fastapi import FastAPI, Request
    
    app = FastAPI(
        servers=[
            {"url": "https://stag.example.com", "description": "Staging environment"},
            {"url": "https://prod.example.com", "description": "Production environment"},
        ],
        root_path="/api/v1",
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 405 bytes
    - Viewed (0)
  9. docs_src/behind_a_proxy/tutorial004_py39.py

    from fastapi import FastAPI, Request
    
    app = FastAPI(
        servers=[
            {"url": "https://stag.example.com", "description": "Staging environment"},
            {"url": "https://prod.example.com", "description": "Production environment"},
        ],
        root_path="/api/v1",
        root_path_in_servers=False,
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 437 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_behind_a_proxy/test_tutorial004.py

        assert response.status_code == 200
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "servers": [
                    {
                        "url": "https://stag.example.com",
                        "description": "Staging environment",
                    },
                    {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 1.4K bytes
    - Viewed (0)
Back to top