Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 221 for ngquery (0.16 sec)

  1. 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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  2. tests/test_security_api_key_query_optional.py

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

            "Path(Ellipsis)",
        )
    
    
    def test_query_repr_str():
        assert repr(Query("teststr")) == "Query(teststr)"
    
    
    def test_query_repr_none():
        assert repr(Query(None)) == "Query(None)"
    
    
    def test_query_repr_ellipsis():
        assert repr(Query(...)) == IsOneOf(
            "Query(PydanticUndefined)",
            # TODO: remove when deprecating Pydantic v1
            "Query(Ellipsis)",
        )
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  4. tests/test_application.py

                        },
                        "summary": "Get Query",
                        "operationId": "get_query_query_get",
                        "parameters": [
                            {
                                "required": True,
                                "schema": {"title": "Query"},
                                "name": "query",
                                "in": "query",
                            }
                        ],
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 52.2K bytes
    - Viewed (0)
  5. docs/sts/client_grants/__init__.py

                query = {}
                query['Action'] = 'AssumeRoleWithClientGrants'
                query['Token'] = creds['access_token']
                query['DurationSeconds'] = creds['expires_in']
                query['Version'] = '2011-06-15'
    
                query_components = []
                for key in query:
                    if query[key] is not None:
                        query_components.append("%s=%s" % (key, query[key]))
    
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 4.6K bytes
    - Viewed (1)
  6. docs_src/query_params_str_validations/tutorial014_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        hidden_query: Annotated[Union[str, None], Query(include_in_schema=False)] = None,
    ):
        if hidden_query:
            return {"hidden_query": hidden_query}
        else:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 344 bytes
    - Viewed (0)
  7. tests/test_dependency_overrides.py

                        "type": "missing",
                        "loc": ["query", "q"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["query", "q"],
                        "msg": "field required",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  8. docs_src/query_params_str_validations/tutorial010_an.py

    from typing import Union
    
    from fastapi import FastAPI, Query
    from typing_extensions import Annotated
    
    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,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 664 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_websockets/test_tutorial002_an_py39.py

                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
                assert data == f"Message text was: {message}, for item ID: foo"
                message = "Message two"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  10. docs_src/query_params_str_validations/tutorial011_py39.py

    from typing import Union
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Union[list[str], None] = Query(default=None)):
        query_items = {"q": q}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 221 bytes
    - Viewed (0)
Back to top