- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 146 for item_id (0.1 sec)
-
tests/main.py
return "Hello World" @app.get("/path/{item_id}") def get_id(item_id): return item_id @app.get("/path/str/{item_id}") def get_str_id(item_id: str): return item_id @app.get("/path/int/{item_id}") def get_int_id(item_id: int): return item_id @app.get("/path/float/{item_id}") def get_float_id(item_id: float): return item_id @app.get("/path/bool/{item_id}")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 4.3K bytes - Viewed (0) -
tests/test_application.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 52.2K bytes - Viewed (0) -
tests/test_path.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 34.4K bytes - Viewed (0) -
docs_src/extra_data_types/tutorial001.py
app = FastAPI() @app.put("/items/{item_id}") async def read_items( item_id: UUID, start_datetime: datetime = Body(), end_datetime: datetime = Body(), process_after: timedelta = Body(), repeat_at: Union[time, None] = Body(default=None), ): start_process = start_datetime + process_after duration = end_datetime - start_process return { "item_id": item_id,
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 00:11:40 UTC 2024 - 755 bytes - Viewed (0) -
docs_src/extra_data_types/tutorial001_an_py39.py
from datetime import datetime, time, timedelta from typing import Annotated, Union from uuid import UUID from fastapi import Body, FastAPI app = FastAPI() @app.put("/items/{item_id}") async def read_items( item_id: UUID, start_datetime: Annotated[datetime, Body()], end_datetime: Annotated[datetime, Body()], process_after: Annotated[timedelta, Body()], repeat_at: Annotated[Union[time, None], Body()] = None, ):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 00:11:40 UTC 2024 - 801 bytes - Viewed (0) -
docs_src/extra_data_types/tutorial001_an.py
from typing import Union from uuid import UUID from fastapi import Body, FastAPI from typing_extensions import Annotated app = FastAPI() @app.put("/items/{item_id}") async def read_items( item_id: UUID, start_datetime: Annotated[datetime, Body()], end_datetime: Annotated[datetime, Body()], process_after: Annotated[timedelta, Body()],
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 00:11:40 UTC 2024 - 830 bytes - Viewed (0) -
tests/test_tutorial/test_extra_data_types/test_tutorial001_an.py
expected_response.update( { "start_process": "2018-12-22T14:05:00+00:00", "duration": 176_100, "item_id": item_id, } ) response = client.put(f"/items/{item_id}", json=data) assert response.status_code == 200, response.text assert response.json() == expected_response def test_openapi_schema(): response = client.get("/openapi.json")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 00:11:40 UTC 2024 - 6.8K bytes - Viewed (0) -
docs/pl/docs/index.md
@app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}") def update_item(item_id: int, item: Item): return {"item_name": item.name, "item_id": item_id} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Apr 29 05:18:04 UTC 2024 - 19.4K bytes - Viewed (0) -
docs_src/extra_data_types/tutorial001_py310.py
app = FastAPI() @app.put("/items/{item_id}") async def read_items( item_id: UUID, start_datetime: datetime = Body(), end_datetime: datetime = Body(), process_after: timedelta = Body(), repeat_at: time | None = Body(default=None), ): start_process = start_datetime + process_after duration = end_datetime - start_process return { "item_id": item_id, "start_datetime": start_datetime,
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 00:11:40 UTC 2024 - 724 bytes - Viewed (0) -
docs/uk/docs/index.md
@app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} @app.put("/items/{item_id}") def update_item(item_id: int, item: Item): return {"item_name": item.name, "item_id": item_id} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Apr 29 05:18:04 UTC 2024 - 24.2K bytes - Viewed (0)