Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 851 for query (0.23 sec)

  1. docs/de/docs/tutorial/query-params-str-validations.md

    Wie in:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    Aber `item-query` ist kein gültiger Name für eine Variable in Python.
    
    Am ähnlichsten wäre `item_query`.
    
    Aber Sie möchten dennoch exakt `item-query` verwenden.
    
    Dann können Sie einen `alias` deklarieren, und dieser Alias wird verwendet, um den Parameter-Wert zu finden:
    
    === "Python 3.10+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/query-params-str-validations.md

    {!../../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    ## 使用 `Query` 作为默认值
    
    现在,将 `Query` 用作查询参数的默认值,并将它的 `max_length` 参数设置为 50:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial002.py!}
    ```
    
    由于我们必须用 `Query(default=None)` 替换默认值 `None`,`Query` 的第一个参数同样也是用于定义默认值。
    
    所以:
    
    ```Python
    q: Union[str, None] = Query(default=None)
    ```
    
    ...使得参数可选,等同于:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  3. tests/test_openapi_query_parameter_extension.py

                    "name": "extra_param_1",
                    "in": "query",
                },
                {
                    "required": True,
                    "schema": {"title": "Extra Param 2"},
                    "name": "extra_param_2",
                    "in": "query",
                },
            ]
        },
    )
    def route_with_extra_query_parameters(standard_query_param: Optional[int] = 50):
        return {}
    
    
    client = TestClient(app)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  4. tests/test_security_api_key_query.py

                    }
                }
            },
            "components": {
                "securitySchemes": {
                    "APIKeyQuery": {"type": "apiKey", "name": "key", "in": "query"}
                }
            },
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 1.8K 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",
                    }
                }
            },
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. tests/test_security_api_key_query_optional.py

                    }
                }
            },
            "components": {
                "securitySchemes": {
                    "APIKeyQuery": {"type": "apiKey", "name": "key", "in": "query"}
                }
            },
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2K bytes
    - Viewed (0)
  7. tests/test_openapi_examples.py

    ):
        return item_id
    
    
    @app.get("/query_examples/")
    def query_examples(
        data: Union[str, None] = Query(
            default=None,
            examples=[
                "json_schema_query1",
                "json_schema_query2",
            ],
            openapi_examples={
                "Query One": {
                    "summary": "Query One Summary",
                    "description": "Query One Description",
                    "value": "query1",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 17K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                    Set.of("QUERY1", "QUERY2"), //
                    buildQuery("QUERY1 AND QUERY2"));
    
            assertQuery(
                    functionScoreQuery(
                            orQuery(simpleQuery("QUERY1", titleBoost, contentBoost), simpleQuery("QUERY2", titleBoost, contentBoost))),
                    Map.of("_default", List.of("QUERY1", "QUERY2")), //
                    Set.of("QUERY1", "QUERY2"), //
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  9. tests/main.py

        return item_id
    
    
    @app.get("/query")
    def get_query(query):
        return f"foo bar {query}"
    
    
    @app.get("/query/optional")
    def get_query_optional(query=None):
        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/int")
    def get_query_type(query: int):
        return f"foo bar {query}"
    
    
    @app.get("/query/int/optional")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/query/TermQueryCommandTest.java

    import org.codelibs.fess.util.ComponentUtil;
    import org.opensearch.index.query.BoolQueryBuilder;
    import org.opensearch.index.query.MatchPhraseQueryBuilder;
    import org.opensearch.index.query.PrefixQueryBuilder;
    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.index.query.TermQueryBuilder;
    import org.opensearch.index.query.WildcardQueryBuilder;
    import org.opensearch.search.sort.SortBuilder;
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.8K bytes
    - Viewed (0)
Back to top