- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 1,638 for item2 (0.03 sec)
-
docs_src/schema_extra_example/tutorial005_an_py310.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Annotated[ Item, Body( openapi_examples={ "normal": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 26 18:03:13 UTC 2023 - 1.5K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py
def test_get_valid_headers_items(client: TestClient): response = client.get( "/items/", headers={ "X-Token": "fake-super-secret-token", "X-Key": "fake-super-secret-key", }, ) assert response.status_code == 200, response.text assert response.json() == [{"item": "Portal Gun"}, {"item": "Plumbus"}] @needs_py39 def test_get_valid_headers_users(client: TestClient):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 8.8K bytes - Viewed (0) -
docs_src/dependencies/tutorial012_an.py
return x_key app = FastAPI(dependencies=[Depends(verify_token), Depends(verify_key)]) @app.get("/items/") async def read_items(): return [{"item": "Portal Gun"}, {"item": "Plumbus"}] @app.get("/users/") async def read_users():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 756 bytes - Viewed (0) -
docs/ko/docs/index.md
### 확인하기 브라우저로 <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>를 열어보십시오. 아래의 JSON 응답을 볼 수 있습니다: ```JSON {"item_id": 5, "q": "somequery"} ``` 여러분은 벌써 API를 만들었습니다: * _경로_ `/` 및 `/items/{item_id}`에서 HTTP 요청 받기. * 두 _경로_ 모두 `GET` 연산(HTTP _메소드_ 로 알려진)을 받습니다. * _경로_ `/items/{item_id}`는 _경로 매개변수_ `int`형 이어야 하는 `item_id`를 가지고 있습니다.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 16 16:50:01 UTC 2024 - 19.4K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/index.jsp
<c:forEach var="item" varStatus="s" items="${popularWords}"> <c:if test="${s.index < 3}"> <la:link href="/search?q=${f:u(item)}${fe:facetQuery()}${fe:geoQuery()}">${f:h(item)}</la:link> </c:if> <c:if test="${3 <= s.index}"> <la:link styleClass="d-none d-sm-inline"
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 26 01:07:52 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/bn/docs/index.md
</details> ### এটা চেক করুন আপনার ব্রাউজার খুলুন <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a> এ। আপনি JSON রেসপন্স দেখতে পাবেন: ```JSON {"item_id": 5, "q": "somequery"} ``` আপনি ইতিমধ্যে একটি API তৈরি করেছেন যা: - `/` এবং `/items/{item_id}` _paths_ এ HTTP অনুরোধ গ্রহণ করে।
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 30.2K bytes - Viewed (0) -
docs/hu/docs/index.md
Nyisd meg a böngésződ a következő címen: <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>. A következő JSON választ fogod látni: ```JSON {"item_id": 5, "q": "somequery"} ``` Máris létrehoztál egy API-t ami: * HTTP kéréseket fogad a `/` és `/items/{item_id}` _útvonalakon_.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 20.2K bytes - Viewed (0) -
docs/pt/docs/index.md
### Verifique Abra seu navegador em <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>. Você verá a resposta JSON como: ```JSON {"item_id": 5, "q": "somequery"} ``` Você acabou de criar uma API que: * Recebe requisições HTTP nas _rotas_ `/` e `/items/{item_id}`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 18.6K bytes - Viewed (0) -
docs/es/docs/index.md
</details> ### Revísalo Abre tu navegador en <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>. Verás la respuesta de JSON cómo: ```JSON {"item_id": 5, "q": "somequery"} ``` Ya creaste una API que: * Recibe HTTP requests en los _paths_ `/` y `/items/{item_id}`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 19K bytes - Viewed (0) -
tests/test_tutorial/test_templates/test_tutorial001.py
from docs_src.templates.tutorial001 import app client = TestClient(app) response = client.get("/items/foo") assert response.status_code == 200, response.text assert ( b'<h1><a href="http://testserver/items/foo">Item ID: foo</a></h1>' in response.content ) response = client.get("/static/styles.css") assert response.status_code == 200, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jan 11 22:25:37 UTC 2024 - 910 bytes - Viewed (0)