- Sort Score
- Result 10 results
- Languages All
Results 921 - 930 of 3,549 for getZ (0.02 sec)
-
docs_src/path_params_numeric_validations/tutorial006_an_py39.py
from typing import Annotated from fastapi import FastAPI, Path, Query app = FastAPI() @app.get("/items/{item_id}") async def read_items( *, item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)], q: str, size: Annotated[float, Query(gt=0, lt=10.5)], ): results = {"item_id": item_id} if q: results.update({"q": q}) if size: results.update({"size": size})
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Aug 28 23:39:15 UTC 2024 - 447 bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilderRequest.java
@Experimental @Immutable public interface SettingsBuilderRequest extends Request<ProtoSession> { /** * Gets the installation settings source. * * @return the installation settings source or {@code null} if none */ @Nonnull Optional<Source> getInstallationSettingsSource(); /** * Gets the project settings source. * * @return the project settings source or {@code null} if none */
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 9.4K bytes - Viewed (0) -
tests/test_tutorial/test_cors/test_tutorial001.py
response = client.get("/", headers=headers) assert response.status_code == 200, response.text assert response.json() == {"message": "Hello World"} assert ( response.headers["access-control-allow-origin"] == "https://localhost.tiangolo.com" ) # Test non-CORS response response = client.get("/") assert response.status_code == 200, response.textRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.3K bytes - Viewed (0) -
fastapi/security/api_key.py
## Example ```python from fastapi import Depends, FastAPI from fastapi.security import APIKeyQuery app = FastAPI() query_scheme = APIKeyQuery(name="api_key") @app.get("/items/") async def read_items(api_key: str = Depends(query_scheme)): return {"api_key": api_key} ``` """ def __init__( self, *, name: Annotated[Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 9.6K bytes - Viewed (1) -
docs_src/security/tutorial005_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.3K bytes - Viewed (0) -
docs/en/docs/alternatives.md
The way you use it is very simple. For example, to do a `GET` request, you would write: ```Python response = requests.get("http://example.com/some/url") ``` The FastAPI counterpart API *path operation* could look like: ```Python hl_lines="1" @app.get("/some/url") def read_url(): return {"message": "Hello World"} ``` See the similarities in `requests.get(...)` and `@app.get(...)`. /// check | Inspired **FastAPI** toRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 23.6K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial001.py
return client def test_get_custom_response(client: TestClient): response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [{"item_id": "Foo"}] def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 1.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
return; } assertNull(map.get(unmappedKey)); } public void testGetNull() { Map<K, V> map = makeEitherMap(); if (allowsNullKeys) { if (allowsNullValues) { // TODO: decide what to test here. } else { assertEquals(map.containsKey(null), map.get(null) != null); } } else { try { V unused = map.get(null);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
docs/zh-hant/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial001.py h1[6] *} `@app.get("/")` 告訴 **FastAPI** 那個函式負責處理請求: * 路徑 `/` * 使用 <abbr title="HTTP GET 方法"><code>get</code>操作</abbr> /// info | `@decorator` Info Python 中的 `@something` 語法被稱為「裝飾器」。 你把它放在一個函式上面。像一個漂亮的裝飾帽子(我猜這是術語的來源)。 一個「裝飾器」會對下面的函式做一些事情。 在這種情況下,這個裝飾器告訴 **FastAPI** 那個函式對應於 **路徑** `/` 和 **操作** `get`. 這就是「**路徑操作裝飾器**」。 /// 你也可以使用其他的操作:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 11.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/first-steps.md
우리 역시 이제부터 메소드를 "**작동**"이라고 부를 것입니다. #### *경로 작동 데코레이터* 정의 {* ../../docs_src/first_steps/tutorial001.py hl[6] *} `@app.get("/")`은 **FastAPI**에게 바로 아래에 있는 함수가 다음으로 이동하는 요청을 처리한다는 것을 알려줍니다. * 경로 `/` * <abbr title="HTTP GET 메소드"><code>get</code> 작동</abbr> 사용 /// info | `@decorator` 정보 이 `@something` 문법은 파이썬에서 "데코레이터"라 부릅니다.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 10.3K bytes - Viewed (0)