- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 2,650 for ID (0.12 sec)
-
docs_src/dependencies/tutorial008c_an_py39.py
print("Oops, we didn't raise again, Britney 😱") @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id == "portal-gun": raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException(
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 700 bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultLifecycleBindingsInjector.java
cur.getExecutions().forEach(e -> execs.put(e.getId(), e)); plugin.getExecutions().forEach(e -> { int i = 0; String id = e.getId(); while (execs.putIfAbsent(id, e.withId(id)) != null) { id = e.getId() + "-" + (++i); } }); Plugin merged = cur.withExecutions(execs.values()); plugins.put(merged, merged);
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 8.6K bytes - Viewed (0) -
docs_src/additional_status_codes/tutorial001_an.py
items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[Union[str, None], Body()] = None, size: Annotated[Union[int, None], Body()] = None, ): if item_id in items: item = items[item_id] item["name"] = name item["size"] = size return item else:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 734 bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial001_py310.py
assert response.status_code == 200 assert response.json() == {"item_id": 5, "q": "bar"} @needs_py310 def test_post_no_body(client: TestClient): response = client.put("/items/5", json=None) assert response.status_code == 200 assert response.json() == {"item_id": 5} @needs_py310 def test_post_id_foo(client: TestClient): response = client.put("/items/foo", json=None)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.6K bytes - Viewed (0) -
tests/test_tutorial/test_handling_errors/test_tutorial004.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 3.7K bytes - Viewed (0) -
docs_src/path_params/tutorial002.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 143 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/user/allcommon/EsAbstractEntity.java
protected String id; protected Long version; protected Long seqNo; protected Long primaryTerm; private transient RequestOptionCall<IndexRequestBuilder> indexOption; private transient RequestOptionCall<DeleteRequestBuilder> deleteOption; public DocMeta id(String id) { this.id = id; myuniqueByProperty("_id");
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 10.9K bytes - Viewed (0) -
docs_src/query_params/tutorial005.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/{item_id}") async def read_user_item(item_id: str, needy: str): item = {"item_id": item_id, "needy": needy}
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 26 19:09:53 GMT 2020 - 192 bytes - Viewed (0) -
internal/grid/handlers.go
} func (h *handlers) hasAny(id HandlerID) bool { if !id.valid() { return false } return h.single[id] != nil || h.stateless[id] != nil || h.streams[id] != nil } func (h *handlers) hasSubhandler(id subHandlerID) bool { return h.subSingle[id] != nil || h.subStateless[id] != nil || h.subStreams[id] != nil }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 23 17:15:52 GMT 2024 - 27.1K bytes - Viewed (0) -
docs_src/body/tutorial003_py310.py
class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None app = FastAPI() @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 09 14:28:58 GMT 2024 - 324 bytes - Viewed (0)