Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for declare (0.13 sec)

  1. fastapi/param_functions.py

        ] = True,
    ) -> Any:
        """
        Declare a FastAPI Security dependency.
    
        The only difference with a regular dependency is that it can declare OAuth2
        scopes that will be integrated with OpenAPI and the automatic UI docs (by default
        at `/docs`).
    
        It takes a single "dependable" callable (like a function).
    
        Don't call it directly, FastAPI will call it for you.
    
        Read more about it in the
    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)
  2. tests/test_query.py

    
    def test_query_query_baz():
        response = client.get("/query?query=baz")
        assert response.status_code == 200
        assert response.json() == "foo bar baz"
    
    
    def test_query_not_declared_baz():
        response = client.get("/query?not_declared=baz")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  3. fastapi/applications.py

                    tools like Swagger UI, used in the automatic path `/docs`.
    
                    It's not required to specify all the tags used.
    
                    The tags that are not declared MAY be organized randomly or based
                    on the tools' logic. Each tag name in the list MUST be unique.
    
                    The value of each item is a `dict` containing:
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
Back to top