Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for OPENAPI_URL (0.1 sec)

  1. docs/en/docs/how-to/conditional-openapi.md

    Here we declare the setting `openapi_url` with the same default of `"/openapi.json"`.
    
    And then we use it when creating the `FastAPI` app.
    
    Then you could disable OpenAPI (including the UI docs) by setting the environment variable `OPENAPI_URL` to the empty string, like:
    
    <div class="termy">
    
    ```console
    $ OPENAPI_URL= uvicorn main:app
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:21:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. docs/en/docs/how-to/custom-docs-ui-assets.md

    You can reuse FastAPI's internal functions to create the HTML pages for the docs, and pass them the needed arguments:
    
    * `openapi_url`: the URL where the HTML page for the docs can get the OpenAPI schema for your API. You can use here the attribute `app.openapi_url`.
    * `title`: the title of your API.
    * `oauth2_redirect_url`: you can use `app.swagger_ui_oauth2_redirect_url` here to use the default.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:42:34 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/metadata.md

    ## OpenAPI URL
    
    OpenAPI 구조는 기본적으로  `/openapi.json`에서 제공됩니다.
    
    `openapi_url` 매개변수를 통해 이를 설정할 수 있습니다.
    
    예를 들어, 이를 `/api/v1/openapi.json`에 제공하도록 설정하려면:
    
    ```Python hl_lines="3"
    {!../../docs_src/metadata/tutorial002.py!}
    ```
    
    OpenAPI 구조를 완전히 비활성화하려면 `openapi_url=None`으로 설정할 수 있으며, 이를 사용하여 문서화 사용자 인터페이스도 비활성화됩니다.
    
    ## 문서화 URL
    
    포함된 두 가지 문서화 사용자 인터페이스를 설정할 수 있습니다:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 10:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/metadata.md

    Mas você pode configurá-lo com o parâmetro `openapi_url`.
    
    Por exemplo, para defini-lo para ser servido em `/api/v1/openapi.json`:
    
    ```Python hl_lines="3"
    {!../../docs_src/metadata/tutorial002.py!}
    ```
    
    Se você quiser desativar completamente o esquema OpenAPI, pode definir `openapi_url=None`, o que também desativará as interfaces de documentação que o utilizam.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 10:36:14 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. docs/en/docs/how-to/extending-openapi.md

    A `FastAPI` application (instance) has an `.openapi()` method that is expected to return the OpenAPI schema.
    
    As part of the application object creation, a *path operation* for `/openapi.json` (or for whatever you set your `openapi_url`) is registered.
    
    It just returns a JSON response with the result of the application's `.openapi()` method.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:39:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

    * Remove obsolete vote link. PR [#1289](https://github.com/tiangolo/fastapi/pull/1289) by [@donhui](https://github.com/donhui).
    * Allow disabling docs UIs by just disabling OpenAPI with `openapi_url=None`. New example in docs: [Advanced: Conditional OpenAPI](https://fastapi.tiangolo.com/advanced/conditional-openapi/). PR [#1421](https://github.com/tiangolo/fastapi/pull/1421).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
Back to top