- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 1,168 for item2 (0.04 seconds)
-
tests/test_tutorial/test_header_param_models/test_tutorial001.py
{ "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/": { "get": { "summary": "Read Items", "operationId": "read_items_items__get", "parameters": [ {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.3K bytes - Click Count (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial014.py
return client def test_hidden_query(client: TestClient): response = client.get("/items?hidden_query=somevalue") assert response.status_code == 200, response.text assert response.json() == {"hidden_query": "somevalue"} def test_no_hidden_query(client: TestClient): response = client.get("/items") assert response.status_code == 200, response.text assert response.json() == {"hidden_query": "Not found"}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.4K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial005.py
[ ( "/items", "from_cookie", 200, {"q_or_cookie": "from_cookie"}, ), ( "/items?q=foo", "from_cookie", 200, {"q_or_cookie": "foo"}, ), ( "/items", None, 200, {"q_or_cookie": None},Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.5K bytes - Click Count (0) -
tests/test_tutorial/test_metadata/test_tutorial001.py
"info": { "title": "ChimichangApp", "summary": "Deadpool's favorite app. Nuff said.", "description": "\nChimichangApp API helps you do awesome stuff. ๐\n\n## Items\n\nYou can **read items**.\n\n## Users\n\nYou will be able to:\n\n* **Create users** (_not implemented_).\n* **Read users** (_not implemented_).\n", "termsOfService": "http://example.com/terms/", "contact": {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.7K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial001.py
return client def test_no_token(client: TestClient): response = client.get("/items") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_token(client: TestClient): response = client.get("/items", headers={"Authorization": "Bearer testtoken"}) assert response.status_code == 200, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.2K bytes - Click Count (0) -
docs_src/dependencies/tutorial003_py39.py
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})Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 635 bytes - Click Count (0) -
docs_src/dependencies/tutorial003_an_py310.py
self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: Annotated[Any, 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})Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 655 bytes - Click Count (0) -
docs/ko/docs/python-types.md
๋๊ดํธ ์์ ๋ด๋ถ ํ์ ์ "ํ์ ๋งค๊ฐ๋ณ์(type paramters)"๋ผ๊ณ ํฉ๋๋ค. ์ด๋ฒ ์์ ์์๋ `str`์ด `List`์ ๋ค์ด๊ฐ ํ์ ๋งค๊ฐ๋ณ์ ์ ๋๋ค. /// ์ด๋ "`items`์ `list`์ธ๋ฐ, ๋ฐฐ์ด์ ๋ค์ด์๋ ์์ดํ ๊ฐ๊ฐ์ `str`์ด๋ค"๋ผ๋ ๋ป์ ๋๋ค. ์ด๋ ๊ฒ ํจ์ผ๋ก์จ, ์๋ํฐ๋ ๋ฐฐ์ด์ ๋ค์ด์๋ ์์ดํ ์ ์ฒ๋ฆฌํ ๋๋ ๋์์ ์ค ์ ์๊ฒ ๋ฉ๋๋ค: <img src="/img/python-types/image05.png"> ํ์ ์ด ์์ผ๋ฉด ์ด๊ฑด ๊ฑฐ์ ๋ถ๊ฐ๋ฅ์ด๋ ๋ค๋ฆ ์์ต๋๋ค. ๋ณ์ `item`์ `items`์ ๊ฐ๋ณ ์์๋ผ๋ ์ฌ์ค์ ์์๋์ธ์. ๊ทธ๋ฆฌ๊ณ ์๋ํฐ๋ ๊ณ์ `str`๋ผ๋ ์ฌ์ค์ ์๊ณ ๋์์ค๋๋ค. #### `Tuple`๊ณผ `Set`
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 10.2K bytes - Click Count (0) -
tests/test_forms_from_non_typing_sequences.py
app = FastAPI() @app.post("/form/python-list") def post_form_param_list(items: list = Form()): return items @app.post("/form/python-set") def post_form_param_set(items: set = Form()): return items @app.post("/form/python-tuple") def post_form_param_tuple(items: tuple = Form()): return items client = TestClient(app) def test_python_list_param_as_form():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 1.2K bytes - Click Count (0) -
docs/pt/docs/tutorial/bigger-applications.md
* procure o subpacote `routers` (o diretรณrio em `app/routers/`)... * e dele, importe o submรณdulo `items` (o arquivo em `app/routers/items.py`) e `users` (o arquivo em `app/routers/users.py`)... O mรณdulo `items` terรก uma variรกvel `router` (`items.router`). Esta รฉ a mesma que criamos no arquivo `app/routers/items.py`, รฉ um objeto `APIRouter`. E entรฃo fazemos o mesmo para o mรณdulo `users`. Tambรฉm poderรญamos importรก-los como:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 20:32:40 GMT 2025 - 19.7K bytes - Click Count (0)