Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 288 for url (0.15 sec)

  1. fastapi/security/open_id_connect_url.py

        dependency.
        """
    
        def __init__(
            self,
            *,
            openIdConnectUrl: Annotated[
                str,
                Doc(
                    """
                The OpenID Connect URL.
                """
                ),
            ],
            scheme_name: Annotated[
                Optional[str],
                Doc(
                    """
                    Security scheme name.
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  2. docs/en/data/sponsors.yml

    gold:
      - url: https://cryptapi.io/
        title: "CryptAPI: Your easy to use, secure and privacy oriented payment gateway."
        img: https://fastapi.tiangolo.com/img/sponsors/cryptapi.svg
      - url: https://platform.sh/try-it-now/?utm_source=fastapi-signup&utm_medium=banner&utm_campaign=FastAPI-signup-June-2023
        title: "Build, run and scale your apps on a modern, reliable, and secure PaaS."
        img: https://fastapi.tiangolo.com/img/sponsors/platform-sh.png
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Mar 25 23:10:11 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/custom-docs-ui-assets.md

    * `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.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Oct 30 09:58:58 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. tests/test_openapi_servers.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    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")
    def foo():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 2K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/metadata.md

         * URL はパラメータ `docs_url` で設定できます。
         * `docs_url=None` を設定することで無効にできます。
    * ReDoc: `/redoc` で提供されます。
         * URL はパラメータ `redoc_url` で設定できます。
         * `redoc_url=None` を設定することで無効にできます。
    
    たとえば、`/documentation` でSwagger UIが提供されるように設定し、ReDocを無効にするには:
    
    ```Python hl_lines="3"
    {!../../../docs_src/metadata/tutorial003.py!}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. docs_src/conditional_openapi/tutorial001.py

    from fastapi import FastAPI
    from pydantic_settings import BaseSettings
    
    
    class Settings(BaseSettings):
        openapi_url: str = "/openapi.json"
    
    
    settings = Settings()
    
    app = FastAPI(openapi_url=settings.openapi_url)
    
    
    @app.get("/")
    def root():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 281 bytes
    - Viewed (0)
  7. docs/en/docs/advanced/templates.md

    ```html
    Item ID: 42
    ```
    
    ### Template `url_for` Arguments
    
    You can also use `url_for()` inside of the template, it takes as arguments the same arguments that would be used by your *path operation function*.
    
    So, the section with:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 22:25:37 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/query-params.md

    ```Python hl_lines="9"
    {!../../../docs_src/query_params/tutorial001.py!}
    ```
    
    쿼리는 URL에서 `?` 후에 나오고 `&`으로 구분되는 키-값 쌍의 집합입니다.
    
    예를 들어, 아래 URL에서:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ...쿼리 매개변수는:
    
    * `skip`: 값 `0`을 가집니다.
    * `limit`: 값 `10`을 가집니다.
    
    URL의 일부이므로 "자연스럽게" 문자열입니다.
    
    하지만 파이썬 타입과 함께 선언할 경우(위 예에서 `int`), 해당 타입으로 변환 및 검증됩니다.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/query-params.md

    声明的参数不是路径参数时,路径操作函数会把该参数自动解释为**查询**参数。
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params/tutorial001.py!}
    ```
    
    查询字符串是键值对的集合,这些键值对位于 URL 的 `?` 之后,以 `&` 分隔。
    
    例如,以下 URL 中:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ……查询参数为:
    
    * `skip`:值为 `0`
    * `limit`:值为 `10`
    
    这些值都是 URL 的组成部分,因此,它们的类型**本应**是字符串。
    
    但声明 Python 类型(上例中为 `int`)之后,这些值就会转换为声明的类型,并进行类型校验。
    
    所有应用于路径参数的流程也适用于查询参数:
    
    * (显而易见的)编辑器支持
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an_py39.py

    
    @needs_py39
    def test_multi_query_values(client: TestClient):
        url = "/items/?q=foo&q=bar"
        response = client.get(url)
        assert response.status_code == 200, response.text
        assert response.json() == {"q": ["foo", "bar"]}
    
    
    @needs_py39
    def test_query_no_values(client: TestClient):
        url = "/items/"
        response = client.get(url)
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.1K bytes
    - Viewed (0)
Back to top