Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for deepLinking (0.14 sec)

  1. tests/test_tutorial/test_configure_swagger_ui/test_tutorial003.py

    client = TestClient(app)
    
    
    def test_swagger_ui():
        response = client.get("/docs")
        assert response.status_code == 200, response.text
        assert (
            '"deepLinking": false,' in response.text
        ), "overridden configs should be preserved"
        assert (
            '"deepLinking": true' not in response.text
        ), "overridden configs should not include the old value"
        assert (
            '"syntaxHighlight": false' not in response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. docs_src/configure_swagger_ui/tutorial003.py

    from fastapi import FastAPI
    
    app = FastAPI(swagger_ui_parameters={"deepLinking": False})
    
    
    @app.get("/users/{username}")
    async def read_user(username: str):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 201 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_configure_swagger_ui/test_tutorial002.py

        ), "default configs should be preserved"
        assert (
            '"layout": "BaseLayout",' in response.text
        ), "default configs should be preserved"
        assert (
            '"deepLinking": true,' in response.text
        ), "default configs should be preserved"
        assert (
            '"showExtensions": true,' in response.text
        ), "default configs should be preserved"
        assert (
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_configure_swagger_ui/test_tutorial001.py

        ), "default configs should be preserved"
        assert (
            '"layout": "BaseLayout",' in response.text
        ), "default configs should be preserved"
        assert (
            '"deepLinking": true,' in response.text
        ), "default configs should be preserved"
        assert (
            '"showExtensions": true,' in response.text
        ), "default configs should be preserved"
        assert (
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. docs/de/docs/how-to/configure-swagger-ui.md

    ```Python
    {!../../fastapi/openapi/docs.py[ln:7-23]!}
    ```
    
    Sie können jede davon überschreiben, indem Sie im Argument `swagger_ui_parameters` einen anderen Wert festlegen.
    
    Um beispielsweise `deepLinking` zu deaktivieren, könnten Sie folgende Einstellungen an `swagger_ui_parameters` übergeben:
    
    ```Python hl_lines="3"
    {!../../docs_src/configure_swagger_ui/tutorial003.py!}
    ```
    
    ## Andere Parameter der Swagger-Oberfläche
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. docs/en/docs/how-to/configure-swagger-ui.md

    {* ../../fastapi/openapi/docs.py ln[8:23] hl[17:23] *}
    
    You can override any of them by setting a different value in the argument `swagger_ui_parameters`.
    
    For example, to disable `deepLinking` you could pass these settings to `swagger_ui_parameters`:
    
    {* ../../docs_src/configure_swagger_ui/tutorial003.py hl[3] *}
    
    ## Other Swagger UI Parameters
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 16:50:52 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. docs/zh/docs/how-to/configure-swagger-ui.md

    ## 改变默认 Swagger UI 参数
    
    FastAPI 包含了一些默认配置参数,适用于大多数用例。
    
    其包括这些默认配置参数:
    
    ```Python
    {!../../fastapi/openapi/docs.py[ln:7-23]!}
    ```
    
    你可以通过在 `swagger_ui_parameters` 中设置不同的值来覆盖它们。
    
    比如,如果要禁用 `deepLinking`,你可以像这样传递设置到 `swagger_ui_parameters` 中:
    
    ```Python hl_lines="3"
    {!../../docs_src/configure_swagger_ui/tutorial003.py!}
    ```
    
    ## 其他 Swagger UI 参数
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. docs/pt/docs/how-to/configure-swagger-ui.md

    ```Python
    {!../../fastapi/openapi/docs.py[ln:7-23]!}
    ```
    
    Você pode substituir qualquer um deles definindo um valor diferente no argumento `swagger_ui_parameters`.
    
    Por exemplo, para desabilitar `deepLinking` você pode passar essas configurações para `swagger_ui_parameters`:
    
    ```Python hl_lines="3"
    {!../../docs_src/configure_swagger_ui/tutorial003.py!}
    ```
    
    ## Outros parâmetros da UI do Swagger
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. fastapi/openapi/docs.py

            Default configurations for Swagger UI.
    
            You can use it as a template to add any other configurations needed.
            """
        ),
    ] = {
        "dom_id": "#swagger-ui",
        "layout": "BaseLayout",
        "deepLinking": True,
        "showExtensions": True,
        "showCommonExtensions": True,
    }
    
    
    def get_swagger_ui_html(
        *,
        openapi_url: Annotated[
            str,
            Doc(
                """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top