Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 1,105 for cquery (0.13 sec)

  1. tests/test_request_params/test_query/test_optional_str.py

    @app.get("/optional-alias")
    async def read_optional_alias(
        p: Annotated[Optional[str], Query(alias="p_alias")] = None,
    ):
        return {"p": p}
    
    
    class QueryModelOptionalAlias(BaseModel):
        p: Optional[str] = Field(None, alias="p_alias")
    
    
    @app.get("/model-optional-alias")
    async def read_model_optional_alias(p: Annotated[QueryModelOptionalAlias, Query()]):
        return {"p": p.p}
    
    
    @pytest.mark.parametrize(
        "path",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial001_tutorial001_02.py

                                    "title": "Q",
                                },
                                "name": "q",
                                "in": "query",
                            },
                            {
                                "required": False,
                                "schema": {
                                    "title": "Skip",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/cookie-params.md

    Вы можете задать параметры Cookie таким же способом, как `Query` и `Path` параметры.
    
    ## Импорт `Cookie` { #import-cookie }
    
    Сначала импортируйте `Cookie`:
    
    {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *}
    
    ## Объявление параметров `Cookie` { #declare-cookie-parameters }
    
    Затем объявляйте параметры cookie, используя ту же структуру, что и с `Path` и `Query`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  4. tests/test_query_cookie_header_model_extra_params.py

    from fastapi import Cookie, FastAPI, Header, Query
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Model(BaseModel):
        param: str
    
        model_config = {"extra": "allow"}
    
    
    @app.get("/query")
    async def query_model_with_extra(data: Model = Query()):
        return data
    
    
    @app.get("/header")
    async def header_model_with_extra(data: Model = Header()):
        return data
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. tests/test_security_api_key_query_description.py

            "components": {
                "securitySchemes": {
                    "APIKeyQuery": {
                        "type": "apiKey",
                        "name": "key",
                        "in": "query",
                        "description": "API Key Query",
                    }
                }
            },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 24 19:03:06 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. docs_src/query_params_str_validations/tutorial010_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            Union[str, None],
            Query(
                alias="item-query",
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
                max_length=50,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 635 bytes
    - Viewed (0)
  7. docs_src/query_params_str_validations/tutorial010_py39.py

    from typing import Union
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Union[str, None] = Query(
            default=None,
            alias="item-query",
            title="Query string",
            description="Query string for the items to search in the database that have a good match",
            min_length=3,
            max_length=50,
            pattern="^fixedquery$",
            deprecated=True,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 574 bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/body-fields.md

    `Field` 的工作方式和 `Query`、`Path`、`Body` 相同,参数也相同。
    
    /// note | 技术细节
    
    实际上,`Query`、`Path` 都是 `Params` 的子类,而 `Params` 类又是 Pydantic 中 `FieldInfo` 的子类。
    
    Pydantic 的 `Field` 返回也是 `FieldInfo` 的类实例。
    
    `Body` 直接返回的也是 `FieldInfo` 的子类的对象。后文还会介绍一些 `Body` 的子类。
    
    注意,从 `fastapi` 导入的 `Query`、`Path` 等对象实际上都是返回特殊类的函数。
    
    ///
    
    /// tip | 提示
    
    注意,模型属性的类型、默认值及 `Field` 的代码结构与*路径操作函数*的参数相同,只不过是用 `Field` 替换了`Path`、`Query`、`Body`。
    
    ///
    
    ## 添加更多信息
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/RelatedContentService.java

                cb.query().setContent_Wildcard(wrapQuery(relatedContentPager.content));
            }
            // TODO Long, Integer, String supported only.
    
            // setup condition
            cb.query().addOrderBy_Term_Asc();
            cb.query().addOrderBy_CreatedTime_Asc();
    
            // search
    
        }
    
        /**
         * Retrieves a list of all available related content entities.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/service/RequestHeaderService.java

                op.setRefreshPolicy(Constants.TRUE);
            });
    
        }
    
        /**
         * Sets up the database query conditions for retrieving request headers based on pager criteria.
         *
         * @param cb the condition bean for building the database query
         * @param requestHeaderPager the pager containing search and filter criteria
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top