Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 351 for Items (0.02 sec)

  1. docs/em/docs/tutorial/bigger-applications.md

    ///
    
    ## โž•1๏ธโƒฃ ๐Ÿ•น โฎ๏ธ `APIRouter`
    
    โžก๏ธ ๐Ÿ’ฌ ๐Ÿ‘† โœ”๏ธ ๐Ÿ”— ๐Ÿ’ก ๐Ÿšš "๐Ÿฌ" โšช๏ธโžก๏ธ ๐Ÿ‘† ๐Ÿˆธ ๐Ÿ•น `app/routers/items.py`.
    
    ๐Ÿ‘† โœ”๏ธ *โžก ๐Ÿ› ๏ธ* :
    
    * `/items/`
    * `/items/{item_id}`
    
    โšซ๏ธ ๐ŸŒ ๐ŸŽ ๐Ÿ“Š โฎ๏ธ `app/routers/users.py`.
    
    โœ‹๏ธ ๐Ÿ‘ฅ ๐Ÿ’š ๐Ÿ™ƒ & ๐Ÿ“‰ ๐Ÿ“Ÿ ๐Ÿ–.
    
    ๐Ÿ‘ฅ ๐Ÿ’ญ ๐ŸŒ *โžก ๐Ÿ› ๏ธ* ๐Ÿ‘‰ ๐Ÿ•น โœ”๏ธ ๐ŸŽ:
    
    * โžก `prefix`: `/items`.
    * `tags`: (1๏ธโƒฃ ๐Ÿ”–: `items`).
    * โž• `responses`.
    * `dependencies`: ๐Ÿ‘ซ ๐ŸŒ ๐Ÿ’ช ๐Ÿ‘ˆ `X-Token` ๐Ÿ”— ๐Ÿ‘ฅ โœ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. tests/test_openapi_separate_input_output_schemas.py

        app = FastAPI(separate_input_output_schemas=separate_input_output_schemas)
    
        @app.post("/items/", responses={402: {"model": Item}})
        def create_item(item: Item) -> Item:
            return item
    
        @app.post("/items-list/")
        def create_item_list(item: List[Item]):
            return item
    
        @app.get("/items/")
        def read_items() -> List[Item]:
            return [
                Item(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/bigger-applications.md

    * look for the subpackage `routers` (the directory at `app/routers/`)...
    * and from it, import the submodule `items` (the file at `app/routers/items.py`) and `users` (the file at `app/routers/users.py`)...
    
    The module `items` will have a variable `router` (`items.router`). This is the same one we created in the file `app/routers/items.py`, it's an `APIRouter` object.
    
    And then we do the same for the module `users`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       */
      private E extract() {
        final E[] items = this.items;
        E x = items[takeIndex];
        items[takeIndex] = null;
        takeIndex = inc(takeIndex);
        --count;
        return x;
      }
    
      /**
       * Utility for remove and iterator.remove: Delete item at position i. Call only when occupying
       * monitor.
       */
      void removeAt(int i) {
        final E[] items = this.items;
        // if removing front item, just advance
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  5. tests/test_tuples.py

                                "items": {"$ref": "#/components/schemas/ValidationError"},
                            }
                        },
                    },
                    "ItemGroup": {
                        "title": "ItemGroup",
                        "required": ["items"],
                        "type": "object",
                        "properties": {
                            "items": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body/test_tutorial001.py

    def test_body_float(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": 50.5})
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 50.5,
            "description": None,
            "tax": None,
        }
    
    
    def test_post_with_str_float(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": "50.5"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body/test_tutorial001_py310.py

        response = client.post("/items/", json={"name": "Foo", "price": 50.5})
        assert response.status_code == 200
        assert response.json() == {
            "name": "Foo",
            "price": 50.5,
            "description": None,
            "tax": None,
        }
    
    
    @needs_py310
    def test_post_with_str_float(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": "50.5"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15K bytes
    - Viewed (1)
  8. tests/test_tutorial/test_body_updates/test_tutorial001_py39.py

    def test_get(client: TestClient):
        response = client.get("/items/baz")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    @needs_py39
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_bigger_applications/test_main_an.py

                                },
                            },
                        },
                    }
                },
                "/items/": {
                    "get": {
                        "tags": ["items"],
                        "summary": "Read Items",
                        "operationId": "read_items_items__get",
                        "parameters": [
                            {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/bigger-applications.md

    ///
    
    ## ๅ…ถไป–ไฝฟ็”จ `APIRouter` ็š„ๆจกๅ—
    
    ๅ‡่ฎพไฝ ๅœจไฝไบŽ `app/routers/items.py` ็š„ๆจกๅ—ไธญ่ฟ˜ๆœ‰ไธ“้—จ็”จไบŽๅค„็†ๅบ”็”จ็จ‹ๅบไธญใ€Œ้กน็›ฎใ€็š„็ซฏ็‚นใ€‚
    
    ไฝ ๅ…ทๆœ‰ไปฅไธ‹*่ทฏๅพ„ๆ“ไฝœ*๏ผš
    
    * `/items/`
    * `/items/{item_id}`
    
    ่ฟ™ๅ’Œ `app/routers/users.py` ็š„็ป“ๆž„ๅฎŒๅ…จ็›ธๅŒใ€‚
    
    ไฝ†ๆ˜ฏๆˆ‘ไปฌๆƒณๅ˜ๅพ—ๆ›ด่ชๆ˜Žๅนถ็ฎ€ๅŒ–ไธ€ไบ›ไปฃ็ ใ€‚
    
    ๆˆ‘ไปฌ็Ÿฅ้“ๆญคๆจกๅ—ไธญ็š„ๆ‰€ๆœ‰*่ทฏๅพ„ๆ“ไฝœ*้ƒฝๆœ‰็›ธๅŒ็š„๏ผš
    
    * ่ทฏๅพ„ `prefix`๏ผš`/items`ใ€‚
    * `tags`๏ผš๏ผˆไป…ๆœ‰ไธ€ไธช `items` ๆ ‡็ญพ๏ผ‰ใ€‚
    * ้ขๅค–็š„ `responses`ใ€‚
    * `dependencies`๏ผšๅฎƒไปฌ้ƒฝ้œ€่ฆๆˆ‘ไปฌๅˆ›ๅปบ็š„ `X-Token` ไพ่ต–้กนใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top