Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 264 for url (0.13 sec)

  1. docs/en/docs/fastapi-people.md

    ### Gold Sponsors
    
    {% for sponsor in sponsors.gold -%}
    <a href="{{ sponsor.url }}" target="_blank" title="{{ sponsor.title }}"><img src="{{ sponsor.img }}" style="border-radius:15px"></a>
    {% endfor %}
    {% endif %}
    
    {% if sponsors.silver %}
    
    ### Silver Sponsors
    
    {% for sponsor in sponsors.silver -%}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 16 23:54:24 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/path-params.md

    {
      "model_name": "alexnet",
      "message": "Deep Learning FTW!"
    }
    ```
    
    ## 包含路径的路径参数
    
    假设*路径操作*的路径为 `/files/{file_path}`。
    
    但需要 `file_path` 中也包含*路径*,比如,`home/johndoe/myfile.txt`。
    
    此时,该文件的 URL 是这样的:`/files/home/johndoe/myfile.txt`。
    
    ### OpenAPI 支持
    
    OpenAPI 不支持声明包含路径的*路径参数*,因为这会导致测试和定义更加困难。
    
    不过,仍可使用 Starlette 内置工具在 **FastAPI** 中实现这一功能。
    
    而且不影响文档正常运行,但是不会添加该参数包含路径的说明。
    
    ### 路径转换器
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 05:35:40 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  3. docs/ru/docs/fastapi-people.md

    ### Золотые спонсоры
    
    {% for sponsor in sponsors.gold -%}
    <a href="{{ sponsor.url }}" target="_blank" title="{{ sponsor.title }}"><img src="{{ sponsor.img }}" style="border-radius:15px"></a>
    {% endfor %}
    {% endif %}
    
    {% if sponsors.silver %}
    
    ### Серебрянные спонсоры
    
    {% for sponsor in sponsors.silver -%}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  4. .github/actions/notify-translations/app/main.py

            edges {
              cursor
              node {
                id
                url
                body
              }
            }
          }
        }
      }
    }
    """
    
    add_comment_mutation = """
    mutation Q($discussion_id: ID!, $body: String!) {
      addDiscussionComment(input: {discussionId: $discussion_id, body: $body}) {
        comment {
          id
          url
          body
        }
      }
    }
    """
    
    update_comment_mutation = """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/behind-a-proxy.md

    ```JSON hl_lines="5-7"
    {
        "openapi": "3.1.0",
        // Hier mehr Einstellungen
        "servers": [
            {
                "url": "/api/v1"
            },
            {
                "url": "https://stag.example.com",
                "description": "Staging environment"
            },
            {
                "url": "https://prod.example.com",
                "description": "Production environment"
            }
        ],
        "paths": {
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:30:07 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  6. docs/zh/docs/advanced/extending-openapi.md

    第一步是禁用 API 文档,就是使用 CDN 的默认文档。
    
    创建 `FastAPI` 应用时把文档的 URL 设置为 `None` 即可禁用默认文档:
    
    ```Python hl_lines="9"
    {!../../../docs_src/extending_openapi/tutorial002.py!}
    ```
    
    ### 添加自定义文档
    
    现在,创建自定义文档的*路径操作*。
    
    导入 FastAPI 内部函数为文档创建 HTML 页面,并把所需参数传递给这些函数:
    
    * `openapi_url`: API 文档获取 OpenAPI 概图的 HTML 页面,此处可使用 `app.openapi_url`
    * `title`:API 的标题
    * `oauth2_redirect_url`:此处使用 `app.swagger_ui_oauth2_redirect_url` 作为默认值
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:46:12 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_query_params_str_validations/test_tutorial012_an_py39.py

    
    @needs_py39
    def test_default_query_values(client: TestClient):
        url = "/items/"
        response = client.get(url)
        assert response.status_code == 200, response.text
        assert response.json() == {"q": ["foo", "bar"]}
    
    
    @needs_py39
    def test_multi_query_values(client: TestClient):
        url = "/items/?q=baz&q=foobar"
        response = client.get(url)
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an_py310.py

    
    @needs_py310
    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_py310
    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)
  9. tests/test_tutorial/test_query_params_str_validations/test_tutorial011_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)
  10. tests/test_tutorial/test_behind_a_proxy/test_tutorial003.py

            "servers": [
                {"url": "/api/v1"},
                {
                    "url": IsOneOf(
                        "https://stag.example.com/",
                        # TODO: remove when deprecating Pydantic v1
                        "https://stag.example.com",
                    ),
                    "description": "Staging environment",
                },
                {
                    "url": IsOneOf(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.6K bytes
    - Viewed (0)
Back to top