- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for declare (0.13 sec)
-
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) -
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) -
fastapi/applications.py
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)