Search Options

Results per page
Sort
Preferred Languages
Advance

Results 621 - 630 of 1,369 for put (0.02 sec)

  1. android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

       * @throws UnsupportedOperationException always
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      @CheckForNull
      public B put(TypeToken<? extends @NonNull B> key, @ParametricNullness B value) {
        throw new UnsupportedOperationException("Please use putInstance() instead.");
      }
    
      /**
       * Not supported. Use {@link #putInstance} instead.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. docs_src/body_nested_models/tutorial005.py

    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: Set[str] = set()
        image: Union[Image, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 517 bytes
    - Viewed (0)
  3. docs_src/body_nested_models/tutorial006_py39.py

    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
        images: Union[list[Image], None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 519 bytes
    - Viewed (0)
  4. docs/fr/docs/index.md

        * ReDoc.
    
    ---
    
    Pour revenir à l'exemple de code précédent, **FastAPI** permet de :
    
    * Valider que `item_id` existe dans le chemin des requêtes `GET` et `PUT`.
    * Valider que `item_id` est de type `int` pour les requêtes `GET` et `PUT`.
        * Si ce n'est pas le cas, le client voit une erreur utile et claire.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 22K bytes
    - Viewed (0)
  5. docs/zh-hant/docs/index.md

        - ReDoc
    
    ---
    
    回到前面的的程式碼範例,**FastAPI** 還會:
    
    - 驗證 `GET` 和 `PUT` 請求路徑中是否包含 `item_id`。
    - 驗證 `GET` 和 `PUT` 請求中的 `item_id` 是否是 `int` 型別。
        - 如果驗證失敗,將會返回清楚有用的錯誤訊息。
    - 查看 `GET` 請求中是否有命名為 `q` 的查詢參數 (例如 `http://127.0.0.1:8000/items/foo?q=somequery`)。
        - 因為 `q` 參數被宣告為 `= None`,所以是選填的。
        - 如果沒有宣告 `None`,則此參數將會是必填 (例如 `PUT` 範例的請求 body)。
    - 對於 `PUT` 的請求 `/items/{item_id}`,將會讀取 body 為 JSON:
        - 驗證是否有必填屬性 `name` 且型別是 `str`。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. docs/tr/docs/index.md

        * Swagger UI.
        * ReDoc.
    
    ---
    
    Az önceki örneğe geri dönelim, **FastAPI**'ın yapacaklarına bir bakış atalım:
    
    * `item_id`'nin `GET` ve `PUT` istekleri için, yolda olup olmadığının kontol edecek.
    * `item_id`'nin `GET` ve `PUT` istekleri için, tipinin `int` olduğunu doğrulayacak.
        * Eğer değilse, sebebini belirten bir hata mesajı gösterecek.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 16 16:50:01 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  7. docs_src/body_nested_models/tutorial006.py

    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: Set[str] = set()
        images: Union[List[Image], None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 530 bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbAuthenticationHolder.java

    /**
     * @author shinsuke
     *
     */
    public class SmbAuthenticationHolder {
        private final Map<String, SmbAuthentication> authMap = new HashMap<>();
    
        public void add(final SmbAuthentication auth) {
            authMap.put(auth.getPathPrefix(), auth);
        }
    
        public SmbAuthentication get(final String path) {
            if (path == null) {
                return null;
            }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java

                        return null;
                    })).status(ApiResult.Status.OK).result());
        }
    
        // PUT /api/admin/dict/stopwords/setting/{dictId}
        @Execute
        public JsonResponse<ApiResult> put$setting(final String dictId, final CreateBody body) {
            body.dictId = dictId;
            validateApi(body, messages -> {});
            body.crudMode = CrudMode.CREATE;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/fileconfig/ApiAdminFileconfigAction.java

                return null;
            })).status(Status.OK).result());
        }
    
        // PUT /api/admin/fileconfig/setting
        @Execute
        public JsonResponse<ApiResult> put$setting(final CreateBody body) {
            validateApi(body, messages -> {});
            body.crudMode = CrudMode.CREATE;
            final FileConfig fileConfig = getFileConfig(body).map(entity -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top