Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for serveur (0.2 sec)

  1. fastapi/openapi/models.py

        operationId: Optional[str] = None
        parameters: Optional[dict[str, Union[Any, str]]] = None
        requestBody: Optional[Union[Any, str]] = None
        description: Optional[str] = None
        server: Optional[Server] = None
    
    
    class Response(BaseModelWithConfig):
        description: str
        headers: Optional[dict[str, Union[Header, Reference]]] = None
        content: Optional[dict[str, MediaType]] = None
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 15.1K bytes
    - Viewed (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()
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. 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)
  4. fastapi/exceptions.py

    
    class HTTPException(StarletteHTTPException):
        """
        An HTTP exception you can raise in your own code to show errors to the client.
    
        This is for client errors, invalid authentication, invalid data, etc. Not for server
        errors in your code.
    
        Read more about it in the
        [FastAPI docs for Handling Errors](https://fastapi.tiangolo.com/tutorial/handling-errors/).
    
        ## Example
    
        ```python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. 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)
  6. scripts/translate.py

                    Searching for package file structure
            ```
            »»»
    
        Result (German):
    
            «««
            ```console
            $ <font color="#4E9A06">fastapi</font> run <u style="text-decoration-style:solid">main.py</u>
            <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting server
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  7. 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",
                    },
                    {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  8. fastapi/routing.py

                        so it's an error from the API developer. So, FastAPI will raise an
                        error and return a 500 error code (Internal Server Error).
    
                    Read more about it in the
                    [FastAPI docs for Response Model](https://fastapi.tiangolo.com/tutorial/response-model/).
                    """
                ),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  9. 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]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. 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).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top