- Sort Score
- Num 10 results
- Language All
Results 371 - 380 of 1,168 for item2 (0.02 seconds)
-
docs/es/docs/tutorial/handling-errors.md
```JSON { "item": "The Foo Wrestlers" } ``` Pero si el cliente solicita `http://example.com/items/bar` (un `item_id` inexistente `"bar"`), ese cliente recibirá un código de estado HTTP de 404 (el error "no encontrado"), y un response JSON de: ```JSON { "detail": "Item not found" } ``` /// tip | ConsejoCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 9.7K bytes - Click Count (0) -
docs_src/dependencies/tutorial008c_py39.py
@app.get("/items/{item_id}") def get_item(item_id: str, username: 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( status_code=404, detail="Item not found, there's only a plumbus here" )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 660 bytes - Click Count (0) -
docs/zh/docs/advanced/templates.md
/// ## 编写模板 编写模板 `templates/item.html`,代码如下: ```jinja hl_lines="7" {!../../docs_src/templates/templates/item.html!} ``` ### 模板上下文 在包含如下语句的html中: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ...这将显示你从"context"字典传递的 `id`: ```Python {"id": id} ``` 例如。当ID为 `42`时, 会渲染成: ```html Item ID: 42 ``` ### 模板 `url_for` 参数Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 2.7K bytes - Click Count (0) -
docs/de/docs/tutorial/handling-errors.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10.4K bytes - Click Count (0) -
scripts/playwright/separate_openapi_schemas/image01.py
# Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs") page.get_by_text("POST/items/Create Item").click() page.get_by_role("tab", name="Schema").first.click() # Manually add the screenshot page.screenshot( path="docs/en/docs/img/tutorial/separate-openapi-schemas/image01.png" )Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Sep 13 09:14:46 GMT 2024 - 974 bytes - Click Count (0) -
docs/en/docs/advanced/templates.md
/// ## Writing templates { #writing-templates } Then you can write a template at `templates/item.html` with, for example: ```jinja hl_lines="7" {!../../docs_src/templates/templates/item.html!} ``` ### Template Context Values { #template-context-values } In the HTML that contains: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.5K bytes - Click Count (0) -
docs/de/docs/advanced/dataclasses.md
3. Die Datenklasse `Author` enthält eine Liste von `Item`-Datenklassen. 4. Die Datenklasse `Author` wird im `response_model`-Parameter verwendet. 5. Sie können andere Standard-Typannotationen mit Datenklassen als Requestbody verwenden. In diesem Fall handelt es sich um eine Liste von `Item`-Datenklassen.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 5K bytes - Click Count (0) -
docs/en/docs/advanced/dataclasses.md
3. The `Author` dataclass includes a list of `Item` dataclasses. 4. The `Author` dataclass is used as the `response_model` parameter. 5. You can use other standard type annotations with dataclasses as the request body. In this case, it's a list of `Item` dataclasses. 6. Here we are returning a dictionary that contains `items` which is a list of dataclasses.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.2K bytes - Click Count (0) -
internal/store/batch_test.go
} if key.ItemCount != int(limit) { t.Fatalf("expected key.ItemCount=%d; but got %v", limit, key.ItemCount) } items, err := store.GetMultiple(key) if err != nil { t.Fatalf("unable to read key %v; %v", key.String(), err) } if len(items) != int(limit) { t.Fatalf("expected len(items)=%d; but got %v", limit, len(items)) } } func TestBatchCommitOnExit(t *testing.T) { defer func() {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.6K bytes - Click Count (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
Imaginez que vous vouliez que votre paramètre se nomme `item-query`. Comme dans la requête : ``` http://127.0.0.1:8000/items/?item-query=foobaritems ``` Mais `item-query` n'est pas un nom de variable valide en Python. Le nom le plus proche serait `item_query`. Mais vous avez vraiment envie que ce soit exactement `item-query`...
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Nov 09 16:39:20 GMT 2024 - 9.5K bytes - Click Count (0)