- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for first (0.17 sec)
-
.github/actions/people/app/main.py
repository(name: "fastapi", owner: "tiangolo") { discussions(first: 100, after: $after, categoryId: $category_id) { edges { cursor node { number author { login avatarUrl url } title createdAt comments(first: 100) { nodes { createdAt author {
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 17:38:21 GMT 2024 - 19.2K bytes - Viewed (1) -
fastapi/security/http.py
""" The HTTP authorization credentials in the result of using `HTTPBearer` or `HTTPDigest` in a dependency. The HTTP authorization header value is split by the first space. The first part is the `scheme`, the second part is the `credentials`. For example, in an HTTP Bearer token scheme, the client will send a header like: ``` Authorization: Bearer deadbeef12346
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Apr 19 15:29:38 GMT 2024 - 13.2K bytes - Viewed (0) -
.github/actions/notify-translations/app/main.py
all_discussions_query = """ query Q($category_id: ID) { repository(name: "fastapi", owner: "tiangolo") { discussions(categoryId: $category_id, first: 100) { nodes { title id number labels(first: 10) { edges { node { id name } } } } } } } """
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Sep 27 23:01:46 GMT 2023 - 12.4K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases.py
@needs_pydanticv1 def test_read_items(client): response = client.get("/items/") assert response.status_code == 200, response.text data = response.json() assert data first_item = data[0] assert "title" in first_item assert "description" in first_item # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.1K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py
@needs_pydanticv1 def test_read_items(client): response = client.get("/items/") assert response.status_code == 200, response.text data = response.json() assert data first_item = data[0] assert "title" in first_item assert "description" in first_item @needs_py310 # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_openapi_schema(client: TestClient):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.5K bytes - Viewed (0) -
tests/test_security_oauth2_optional.py
return form_data @app.get("/users/me") def read_users_me(current_user: Optional[User] = Depends(get_current_user)): if current_user is None: return {"msg": "Create an account first"} return current_user client = TestClient(app) def test_security_oauth2(): response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.8K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py39.py
@needs_pydanticv1 def test_read_items(client): response = client.get("/items/") assert response.status_code == 200, response.text data = response.json() assert data first_item = data[0] assert "title" in first_item assert "description" in first_item @needs_py39 # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.5K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_py310.py
@needs_pydanticv1 def test_read_items(client): response = client.get("/items/") assert response.status_code == 200, response.text data = response.json() assert data first_item = data[0] assert "title" in first_item assert "description" in first_item @needs_py310 # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_openapi_schema(client: TestClient):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.5K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_py39.py
@needs_pydanticv1 def test_read_items(client): response = client.get("/items/") assert response.status_code == 200, response.text data = response.json() assert data first_item = data[0] assert "title" in first_item assert "description" in first_item @needs_py39 # TODO: pv2 add version with Pydantic v2 @needs_pydanticv1 def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.5K bytes - Viewed (0) -
fastapi/dependencies/utils.py
if not flat_dependant.body_params: return None first_param = flat_dependant.body_params[0] field_info = first_param.field_info embed = getattr(field_info, "embed", None) body_param_names_set = {param.name for param in flat_dependant.body_params} if len(body_param_names_set) == 1 and not embed: check_file_field(first_param) return first_param # If one field requires to embed, all have to be embedded
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 29.5K bytes - Viewed (0)