Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 63 for create_item (0.05 sec)

  1. fastapi/routing.py

            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
            router = APIRouter()
    
            @router.post("/items/")
            def create_item(item: Item):
                return {"message": "Item created"}
    
            app.include_router(router)
            ```
            """
            return self.api_route(
                path=path,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/systeminfo/AdminSysteminfoAction.java

            return createItem(key, System.getProperty(key));
        }
    
        /**
         * Creates a key-value item map for display.
         *
         * @param label the item label
         * @param value the item value
         * @return map containing the formatted key-value pair
         */
        protected static Map<String, String> createItem(final Object label, final Object value) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. fastapi/applications.py

            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
    
            @app.post("/items/")
            def create_item(item: Item):
                return {"message": "Item created"}
            ```
            """
            return self.router.post(
                path,
                response_model=response_model,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/webauth/AdminWebauthAction.java

            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_basic"), Constants.BASIC));
            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_digest"), Constants.DIGEST));
            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.webauth_scheme_ntlm"), Constants.NTLM));
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 20 13:56:35 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/fileauth/AdminFileauthAction.java

            final Locale locale = ComponentUtil.getRequestManager().getUserLocale();
            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.file_auth_scheme_samba"), Constants.SAMBA));
            itemList.add(createItem(ComponentUtil.getMessageManager().getMessage(locale, "labels.file_auth_scheme_ftp"), Constants.FTP));
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 20 13:56:35 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  6. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchUrlQueue.java

        /**
         * Field name for last modified timestamp.
         */
        public static final String LAST_MODIFIED = "lastModified";
    
        /**
         * Field name for creation time.
         */
        public static final String CREATE_TIME = "createTime";
    
        /**
         * Field name for weight.
         */
        public static final String WEIGHT = "weight";
    
        /**
         * Converts this URL queue entry to XContent format for OpenSearch indexing.
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

        description: str | None = None
    
    
    class ItemV2(BaseModelV2):
        title: str
        summary: str | None = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/", response_model=ItemV2)
    def create_item(item: Item):
        return {"title": item.name, "summary": item.description}
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchAccessResult.java

        /**
         * Field name for MIME type.
         */
        public static final String MIME_TYPE = "mimeType";
    
        /**
         * Field name for creation time.
         */
        public static final String CREATE_TIME = "createTime";
    
        /**
         * Field name for execution time.
         */
        public static final String EXECUTION_TIME = "executionTime";
    
        /**
         * Field name for content length.
         */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/reqheader/AdminReqheaderAction.java

            final List<WebConfig> webConfigList = crawlingConfigHelper.getAllWebConfigList(false, false, false, null);
            for (final WebConfig webConfig : webConfigList) {
                itemList.add(createItem(webConfig.getName(), webConfig.getId().toString()));
            }
            RenderDataUtil.register(data, "webConfigItems", itemList);
        }
    
        /**
         * Creates a map item for UI rendering with label and value.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 20 13:56:35 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java

         *
         * @param label the display label for the item
         * @param value the value associated with the item
         * @return a map containing the label and value entries
         */
        protected Map<String, String> createItem(final String label, final String value) {
            final Map<String, String> map = new HashMap<>(2);
            map.put(Constants.ITEM_LABEL, label);
            map.put(Constants.ITEM_VALUE, value);
            return map;
        }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 20 13:56:35 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top