- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 473 for blivit (0.06 sec)
-
docs/zh/docs/tutorial/query-params.md
* API 文档 ## 默认值 查询参数不是路径的固定内容,它是可选的,还支持默认值。 上例用 `skip=0` 和 `limit=10` 设定默认值。 访问 URL: ``` http://127.0.0.1:8000/items/ ``` 与访问以下地址相同: ``` http://127.0.0.1:8000/items/?skip=0&limit=10 ``` 但如果访问: ``` http://127.0.0.1:8000/items/?skip=20 ``` 查询参数的值就是: * `skip=20`:在 URL 中设定的值 * `limit=10`:使用默认值 ## 可选参数 同理,把默认值设为 `None` 即可声明**可选的**查询参数:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5K bytes - Viewed (0) -
docs_src/query_params/tutorial006_py310.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 269 bytes - Viewed (0) -
android/guava/src/com/google/common/io/Java8Compatibility.java
@ElementTypesAreNonnullByDefault final class Java8Compatibility { static void clear(Buffer b) { b.clear(); } static void flip(Buffer b) { b.flip(); } static void limit(Buffer b, int limit) { b.limit(limit); } static void mark(Buffer b) { b.mark(); } static void position(Buffer b, int position) { b.position(position); } static void reset(Buffer b) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 1.4K bytes - Viewed (0) -
docs_src/query_params/tutorial006.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 301 bytes - Viewed (0) -
common-protos/k8s.io/api/flowcontrol/v1beta3/generated.proto
// `borrowingLimitPercent`, if present, configures a limit on how many // seats this priority level can borrow from other priority levels. // The limit is known as this level's BorrowingConcurrencyLimit // (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 19.5K bytes - Viewed (0) -
docs_src/dependencies/tutorial002_py310.py
self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: CommonQueryParams = Depends(CommonQueryParams)): response = {} if commons.q: response.update({"q": commons.q}) items = fake_items_db[commons.skip : commons.skip + commons.limit] response.update({"items": items})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 624 bytes - Viewed (0) -
docs_src/dependencies/tutorial004_py310.py
def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: CommonQueryParams = Depends()): response = {} if commons.q: response.update({"q": commons.q}) items = fake_items_db[commons.skip : commons.skip + commons.limit] response.update({"items": items})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 607 bytes - Viewed (0) -
docs_src/dependencies/tutorial003.py
def __init__(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons=Depends(CommonQueryParams)): response = {} if commons.q: response.update({"q": commons.q}) items = fake_items_db[commons.skip : commons.skip + commons.limit] response.update({"items": items})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 635 bytes - Viewed (0) -
docs_src/dependencies/tutorial004_an_py310.py
def __init__(self, q: str | None = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: Annotated[CommonQueryParams, Depends()]): response = {} if commons.q: response.update({"q": commons.q}) items = fake_items_db[commons.skip : commons.skip + commons.limit] response.update({"items": items})
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 647 bytes - Viewed (0) -
docs_src/dependencies/tutorial001_02_an_py310.py
from typing import Annotated from fastapi import Depends, FastAPI app = FastAPI() async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100): return {"q": q, "skip": skip, "limit": limit} CommonsDep = Annotated[dict, Depends(common_parameters)] @app.get("/items/") async def read_items(commons: CommonsDep): return commons @app.get("/users/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 447 bytes - Viewed (0)