Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for Yellow (0.17 sec)

  1. docs/en/layouts/custom.yml

            "light-blue":  "#02a6f2",
            "cyan":        "#00bdd6",
            "teal":        "#009485",
            "green":       "#4cae4f",
            "light-green": "#8bc34b",
            "lime":        "#cbdc38",
            "yellow":      "#ffec3d",
            "amber":       "#ffc105",
            "orange":      "#ffa724",
            "deep-orange": "#ff6e42",
            "brown":       "#795649",
            "grey":        "#757575",
            "blue-grey":   "#546d78",
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jun 26 14:05:43 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  2. tests/test_router_redirect_slashes.py

        app = FastAPI()
        router = APIRouter()
    
        @router.get("/hello/")
        def hello_page() -> str:
            return "Hello, World!"
    
        app.include_router(router)
    
        client = TestClient(app)
    
        response = client.get("/hello/", follow_redirects=False)
        assert response.status_code == 200
    
        response = client.get("/hello", follow_redirects=False)
        assert response.status_code == 307
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jun 22 10:37:50 GMT 2023
    - 974 bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/first-steps.md

        You put it on top of a function. Like a pretty decorative hat (I guess that's where the term came from).
    
        A "decorator" takes the function below and does something with it.
    
        In our case, this decorator tells **FastAPI** that the function below corresponds to the **path** `/` with an **operation** `get`.
    
        It is the "**path operation decorator**".
    
    You can also use the other operations:
    
    * `@app.post()`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  4. docs_src/dependency_testing/tutorial001_py310.py

    
    @app.get("/items/")
    async def read_items(commons: dict = Depends(common_parameters)):
        return {"message": "Hello Items!", "params": commons}
    
    
    @app.get("/users/")
    async def read_users(commons: dict = Depends(common_parameters)):
        return {"message": "Hello Users!", "params": commons}
    
    
    client = TestClient(app)
    
    
    async def override_dependency(q: str | None = None):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  5. fastapi/params.py

                lt=lt,
                le=le,
                min_length=min_length,
                max_length=max_length,
                discriminator=discriminator,
                multiple_of=multiple_of,
                allow_nan=allow_inf_nan,
                max_digits=max_digits,
                decimal_places=decimal_places,
                **extra,
            )
            if examples is not None:
                kwargs["examples"] = examples
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  6. fastapi/param_functions.py

                """
            ),
        ] = _Unset,
        allow_inf_nan: Annotated[
            Union[bool, None],
            Doc(
                """
                Allow `inf`, `-inf`, `nan`. Only applicable to numbers.
                """
            ),
        ] = _Unset,
        max_digits: Annotated[
            Union[int, None],
            Doc(
                """
                Maximum number of allow digits for strings.
                """
            ),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_testing_dependencies/test_tutorial001_py310.py

            "message": "Hello Users!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    @needs_py310
    def test_override_in_users_with_q():
        from docs_src.dependency_testing.tutorial001_py310 import client
    
        response = client.get("/users/?q=foo")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/cors.md

    支持以下参数:
    
    * `allow_origins` - 一个允许跨域请求的源列表。例如 `['https://example.org', 'https://www.example.org']`。你可以使用 `['*']` 允许任何源。
    * `allow_origin_regex` - 一个正则表达式字符串,匹配的源允许跨域请求。例如 `'https://.*\.example\.org'`。
    * `allow_methods` - 一个允许跨域请求的 HTTP 方法列表。默认为 `['GET']`。你可以使用 `['*']` 来允许所有标准方法。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 27 17:28:07 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/cors.md

    다음의 인자들이 지원됩니다:
    
    * `allow_origins` - 교차-출처 요청을 보낼 수 있는 출처의 리스트입니다. 예) `['https://example.org', 'https://www.example.org']`. 모든 출처를 허용하기 위해 `['*']` 를 사용할 수 있습니다.
    * `allow_origin_regex` - 교차-출처 요청을 보낼 수 있는 출처를 정규표현식 문자열로 나타냅니다.  `'https://.*\.example\.org'`.
    * `allow_methods` - 교차-출처 요청을 허용하는 HTTP 메소드의 리스트입니다. 기본값은 `['GET']` 입니다. `['*']` 을 사용하여 모든 표준 메소드들을 허용할 수 있습니다.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 07 14:21:23 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. docs_src/app_testing/tutorial001.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/")
    async def read_main():
        return {"msg": "Hello World"}
    
    
    client = TestClient(app)
    
    
    def test_read_main():
        response = client.get("/")
        assert response.status_code == 200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 334 bytes
    - Viewed (0)
Back to top