Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for get_items (0.09 sec)

  1. docs/en/docs/advanced/generate-clients.md

    ////
    
    //// tab | Node.js
    
    ```Javascript
    {!> ../../docs_src/generate_clients/tutorial004.js!}
    ```
    
    ////
    
    With that, the operation IDs would be renamed from things like `items-get_items` to just `get_items`, that way the client generator can generate simpler method names.
    
    ### Generate a TypeScript Client with the Preprocessed OpenAPI
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. docs/de/docs/advanced/generate-clients.md

    ```
    
    ////
    
    //// tab | Node.js
    
    ```Javascript
    {!> ../../docs_src/generate_clients/tutorial004.js!}
    ```
    
    ////
    
    Damit würden die Operation-IDs von Dingen wie `items-get_items` in `get_items` umbenannt, sodass der Client-Generator einfachere Methodennamen generieren kann.
    
    ### Einen TypeScript-Client mit der modifizierten OpenAPI generieren
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. tests/test_infer_param_optionality.py

        return {"user_id": user_id}
    
    
    @item_router.get("/")
    def get_items(user_id: Optional[str] = None):
        if user_id is None:
            return [{"item_id": "i1", "user_id": "u1"}, {"item_id": "i2", "user_id": "u2"}]
        else:
            return [{"item_id": "i2", "user_id": user_id}]
    
    
    @item_router.get("/{item_id}")
    def get_item(item_id: str, user_id: Optional[str] = None):
        if user_id is None:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  4. tests/test_extra_routes.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: Optional[float] = None
    
    
    @app.api_route("/items/{item_id}", methods=["GET"])
    def get_items(item_id: str):
        return {"item_id": item_id}
    
    
    def get_not_decorated(item_id: str):
        return {"item_id": item_id}
    
    
    app.add_api_route("/items-not-decorated/{item_id}", get_not_decorated)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            suggester.refresh();
    
            final SuggestResponse response = suggester.suggest().setQuery("検索").setSuggestDetail(true).execute().getResponse();
            final List<SuggestItem> items = response.getItems();
            assertEquals(1, response.getNum());
            assertEquals("検索 エンジン", items.get(0).getText());
        }
    
        @Test
        public void test_indexFromSearchWordExclude() throws Exception {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

                            });
                    if (response.hasFailures()) {
                        if (logger.isDebugEnabled()) {
                            final BulkItemResponse[] items = response.getItems();
                            if (docList.size() == items.length) {
                                for (int i = 0; i < docList.size(); i++) {
                                    final BulkItemResponse resp = items[i];
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  7. src/main/webapp/js/admin/adminlte.min.js

    ptions",JSON.stringify(i));var o=new e(n.default(this),i);n.default(this).data(de,"object"==typeof t?t:a),"string"==typeof t&&/createTab|openTabSidebar|switchTab|removeActiveTab/.test(t)&&o[t]()}else new e(n.default(this),JSON.parse(localStorage.getItem("AdminLTE:IFrame:Options")))._initFrameElement()},e}();n.default(window).on("load",(function(){Qe._jQueryInterface.call(n.default(ue))})),n.default.fn.IFrame=Qe._jQueryInterface,n.default.fn.IFrame.Constructor=Qe,n.default.fn.IFrame.noConflict=function(){return...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/log/allcommon/EsAbstractBehavior.java

                builderCall.callback(bulkBuilder);
            }
    
            final BulkResponse response = bulkBuilder.execute().actionGet(bulkTimeout);
            final BulkItemResponse[] itemResponses = response.getItems();
            if (itemResponses.length != entityList.size()) {
                throw new IllegalStateException("Invalid response size: " + itemResponses.length + " != " + entityList.size());
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/config/allcommon/EsAbstractBehavior.java

                builderCall.callback(bulkBuilder);
            }
    
            final BulkResponse response = bulkBuilder.execute().actionGet(bulkTimeout);
            final BulkItemResponse[] itemResponses = response.getItems();
            if (itemResponses.length != entityList.size()) {
                throw new IllegalStateException("Invalid response size: " + itemResponses.length + " != " + entityList.size());
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  10. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

        protected String buildFailureMessage(final BulkResponse bulkResponse, final boolean ignoreAlreadyExists) {
            final StringBuilder sb = new StringBuilder(100);
            final BulkItemResponse[] responses = bulkResponse.getItems();
            for (int i = 0; i < responses.length; i++) {
                final BulkItemResponse response = responses[i];
                if (response.isFailed()) {
                    if (ignoreAlreadyExists) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top