Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 892 for Item (0.07 seconds)

  1. fastapi/exceptions.py

        items = {"foo": "The Foo Wrestlers"}
    
    
        @app.get("/items/{item_id}")
        async def read_item(item_id: str):
            if item_id not in items:
                raise HTTPException(status_code=404, detail="Item not found")
            return {"item": items[item_id]}
        ```
        """
    
        def __init__(
            self,
            status_code: Annotated[
                int,
                Doc(
                    """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  2. docs/en/docs/python-types.md

    This means:
    
    * The variable `prices` is a `dict`:
        * The keys of this `dict` are of type `str` (let's say, the name of each item).
        * The values of this `dict` are of type `float` (let's say, the price of each item).
    
    #### Union { #union }
    
    You can declare that a variable can be any of **several types**, for example, an `int` or a `str`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  3. docs/tr/docs/index.md

        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}
    ```
    
    `fastapi dev` server'ı otomatik olarak yeniden yüklemelidir.
    
    ### Etkileşimli API dokümantasyonu güncellemesi { #interactive-api-docs-upgrade }
    
    Şimdi [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) adresine gidin.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 23.2K bytes
    - Click Count (0)
  4. docs_src/dependencies/tutorial008c_an_py310.py

            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 Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 700 bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/job/JsonIndexExportFormatter.java

                json.append("[");
                boolean first = true;
                for (final Object item : (Collection<?>) value) {
                    if (!first) {
                        json.append(", ");
                    }
                    first = false;
                    appendJsonValue(json, item);
                }
                json.append("]");
            } else if (value instanceof Map) {
                json.append("{");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Feb 07 10:31:36 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  6. src/main/webapp/WEB-INF/view/admin/badword/admin_badword_upload.jsp

                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item active"><la:link href="/admin/badword">
                                    <la:message key="labels.bad_word_link_list"/>
                                </la:link></li>
                                <li class="breadcrumb-item active"><la:message
                                        key="labels.bad_word_link_upload"/></li>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriter.java

            }
    
            for (final SuggestItem item : mergedItems) {
                final GetResponse getResponse = client.prepareGet().setIndex(index).setId(item.getId()).get(settings.getIndexTimeout());
                if (update && getResponse.isExists()) {
                    final IndexRequestBuilder indexRequestBuilder = new IndexRequestBuilder(client, IndexAction.INSTANCE, index);
                    indexRequestBuilder.setId(item.getId())
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Thu Nov 20 08:32:33 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/body.md

    使用与声明路径和查询参数相同的方式,把它添加至*路径操作*:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[16] *}
    
    ...并把其类型声明为你创建的模型 `Item`。
    
    ## 结果 { #results }
    
    仅使用这些 Python 类型声明,**FastAPI** 就可以:
    
    * 以 JSON 形式读取请求体。
    * (在必要时)把请求体转换为对应的类型。
    * 校验数据。
        * 数据无效时返回清晰的错误信息,并指出错误数据的确切位置和内容。
    * 把接收的数据赋值给参数 `item`。
        * 因为你把函数中的参数类型声明为 `Item`,所以还能获得所有属性及其类型的编辑器支持(补全等)。
    * 为你的模型生成 [JSON Schema](https://json-schema.org) 定义,如果对你的项目有意义,还可以在其他地方使用它们。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  9. src/main/webapp/WEB-INF/view/admin/reqheader/admin_reqheader_edit.jsp

                                                       styleClass="form-control">
                                                <c:forEach var="item" items="${webConfigItems}">
                                                    <la:option value="${f:u(item.value)}">${f:h(item.label)}</la:option>
                                                </c:forEach>
                                            </la:select>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  10. docs/es/docs/index.md

        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}
    ```
    
    El servidor `fastapi dev` debería recargarse automáticamente.
    
    ### Actualización de la documentación interactiva de la API { #interactive-api-docs-upgrade }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 22.6K bytes
    - Click Count (0)
Back to Top