Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for Servers (0.05 seconds)

  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")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  2. fastapi/openapi/utils.py

        if contact:
            info["contact"] = contact
        if license_info:
            info["license"] = license_info
        output: dict[str, Any] = {"openapi": openapi_version, "info": info}
        if servers:
            output["servers"] = servers
        components: dict[str, dict[str, Any]] = {}
        paths: dict[str, dict[str, Any]] = {}
        webhook_paths: dict[str, dict[str, Any]] = {}
        operation_ids: set[str] = set()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  3. 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",
                    },
                    {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_behind_a_proxy/test_tutorial003.py

        assert response.status_code == 200
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "servers": [
                    {"url": "/api/v1"},
                    {
                        "url": "https://stag.example.com",
                        "description": "Staging environment",
                    },
                    {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  5. fastapi/openapi/models.py

        callbacks: Optional[dict[str, Union[dict[str, "PathItem"], Reference]]] = None
        deprecated: Optional[bool] = None
        security: Optional[list[dict[str, list[str]]]] = None
        servers: Optional[list[Server]] = None
    
    
    class PathItem(BaseModelWithConfig):
        ref: Optional[str] = Field(default=None, alias="$ref")
        summary: Optional[str] = None
        description: Optional[str] = None
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  6. pyproject.toml

        "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: 3.12",
        "Programming Language :: Python :: 3.13",
        "Programming Language :: Python :: 3.14",
        "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
        "Topic :: Internet :: WWW/HTTP",
    ]
    dependencies = [
        "starlette>=0.40.0,<0.51.0",
        "pydantic>=2.7.0",
        "typing-extensions>=4.8.0",
        "annotated-doc>=0.0.2",
    ]
    
    [project.urls]
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  7. docs/en/docs/release-notes.md

    * Auto-generate a "server" in OpenAPI `servers` when there's a `root_path` instead of prefixing all the `paths`:
        * Add a new parameter for `FastAPI` classes: `root_path_in_servers` to disable the auto-generation of `servers`.
        * New docs about `root_path` and `servers` in [Additional Servers](https://fastapi.tiangolo.com/advanced/behind-a-proxy/#additional-servers).
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
  8. .teamcity/pom.xml

                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </repository>
            <repository>
                <id>teamcity-server</id>
                <url>https://builds.gradle.org/app/dsl-plugins-repository</url>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </repository>
            <repository>
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Dec 29 22:04:16 GMT 2025
    - 7.4K bytes
    - Click Count (2)
  9. docs/de/docs/index.md

    INFO:     Started server process [2248757]
    INFO:     Waiting for application startup.
    INFO:     Application startup complete.
    ```
    
    </div>
    
    <details markdown="1">
    <summary>Über den Befehl <code>fastapi dev main.py</code> ...</summary>
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 09:39:53 GMT 2025
    - 25.8K bytes
    - Click Count (1)
  10. docs/de/docs/advanced/dataclasses.md

    FastAPI basiert auf **Pydantic**, und ich habe Ihnen gezeigt, wie Sie Pydantic-Modelle verwenden können, um <abbr title="Request – Anfrage: Daten, die der Client zum Server sendet">Requests</abbr> und <abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Responses</abbr> zu deklarieren.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 5K bytes
    - Click Count (0)
Back to Top