Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 495 for bar5 (0.05 sec)

  1. docs/zh/docs/tutorial/body-updates.md

    ```Python hl_lines="30-35"
    {!../../docs_src/body_updates/tutorial001.py!}
    ```
    
    `PUT` 用于接收替换现有数据的数据。
    
    ### 关于更新数据的警告
    
    用 `PUT` 把数据项 `bar` 更新为以下内容时:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    因为上述数据未包含已存储的属性 `"tax": 20.2`,新的输入模型会把 `"tax": 10.5` 作为默认值。
    
    因此,本次操作把 `tax` 的值「更新」为 `10.5`。
    
    ## 用 `PATCH` 进行部分更新
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/body-updates.md

    ```
    
    ////
    
    `PUT` é usado para receber dados que devem substituir os dados existentes.
    
    ### Aviso sobre a substituição
    
    Isso significa que, se você quiser atualizar o item `bar` usando `PUT` com um corpo contendo:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    Como ele não inclui o atributo já armazenado `"tax": 20.2`, o modelo de entrada assumiria o valor padrão de `"tax": 10.5`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 14 09:16:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/body-updates.md

    ```
    
    ////
    
    `PUT` is used to receive data that should replace the existing data.
    
    ### Warning about replacing
    
    That means that if you want to update the item `bar` using `PUT` with a body containing:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/body-updates.md

    ```Python hl_lines="30 31 32 33 34 35"
    {!../../docs_src/body_updates/tutorial001.py!}
    ```
    
    既存のデータを置き換えるべきデータを受け取るために`PUT`は使用されます。
    
    ### 置換についての注意
    
    つまり、`PUT`を使用して以下のボディで項目`bar`を更新したい場合は:
    
    ```Python
    {
        "name": "Barz",
        "price": 3,
        "description": None,
    }
    ```
    
    すでに格納されている属性`"tax": 20.2`を含まないため、入力モデルのデフォルト値は`"tax": 10.5`です。
    
    そして、データはその「新しい」`10.5`の`tax`と共に保存されます。
    
    ## `PATCH`による部分的な更新
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        Table<String, Integer, C> reordered = create("foo", 3, 'c', "foo", 1, 'a', "bar", 1, 'b');
        Table<String, Integer, C> smaller = create("foo", 1, 'a', "bar", 1, 'b');
        Table<String, Integer, C> swapOuter = create("bar", 1, 'a', "foo", 1, 'b', "bar", 3, 'c');
        Table<String, Integer, C> swapValues = create("foo", 1, 'c', "bar", 1, 'b', "foo", 3, 'a');
    
        new EqualsTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        map.put("bar", 4);
        assertEquals("[bar=1, foo=2, bar=3, bar=4]", map.entries().toString());
        assertThat(map.keys()).containsExactly("bar", "foo", "bar", "bar").inOrder();
        map.keys().remove("bar"); // bar is no longer the first key!
        assertEquals("{foo=[2], bar=[3, 4]}", map.toString());
      }
    
      public void testLinkedValues() {
        Multimap<String, Integer> map = create();
        map.put("bar", 1);
        map.put("foo", 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dependencies/test_tutorial004_an_py310.py

                200,
                {"items": [{"item_name": "Bar"}, {"item_name": "Baz"}], "q": "foo"},
            ),
            (
                "/items?q=bar&limit=2",
                200,
                {"items": [{"item_name": "Foo"}, {"item_name": "Bar"}], "q": "bar"},
            ),
            (
                "/items?q=bar&skip=1&limit=1",
                200,
                {"items": [{"item_name": "Bar"}], "q": "bar"},
            ),
            (
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. tests/test_response_model_include_exclude.py

        response_model=Model2,
        response_model_exclude={"ref": {"bar"}},
    )
    def simple_exclude():
        return Model2(
            ref=Model1(foo="simple_exclude model foo", bar="simple_exclude model bar"),
            baz="simple_exclude model2 baz",
        )
    
    
    @app.get(
        "/simple_exclude_dict",
        response_model=Model2,
        response_model_exclude={"ref": {"bar"}},
    )
    def simple_exclude_dict():
        return {
            "ref": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 19 19:14:58 UTC 2021
    - 4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        assertEquals("[(bar,1)=b, (foo,1)=a, (foo,3)=c]", table.cellSet().toString());
      }
    
      public void testRowKeySetToString_ordered() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        assertEquals("[bar, foo]", table.rowKeySet().toString());
      }
    
      public void testValuesToString_ordered() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

        Table<String, Integer, C> reordered = create("foo", 3, 'c', "foo", 1, 'a', "bar", 1, 'b');
        Table<String, Integer, C> smaller = create("foo", 1, 'a', "bar", 1, 'b');
        Table<String, Integer, C> swapOuter = create("bar", 1, 'a', "foo", 1, 'b', "bar", 3, 'c');
        Table<String, Integer, C> swapValues = create("foo", 1, 'c', "bar", 1, 'b', "foo", 3, 'a');
    
        new EqualsTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top