Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 1,333 for item01 (0.06 sec)

  1. tests/test_additional_properties.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Items(BaseModel):
        items: Dict[str, int]
    
    
    @app.post("/foo")
    def foo(items: Items):
        return items.items
    
    
    client = TestClient(app)
    
    
    def test_additional_properties_post():
        response = client.post("/foo", json={"items": {"foo": 1, "bar": 2}})
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. common/scripts/metallb-native.yaml

                  nodeSelectors:
                    description: Only connect to this peer on nodes that match one of
                      these selectors.
                    items:
                      properties:
                        matchExpressions:
                          items:
                            properties:
                              key:
                                type: string
                              operator:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Feb 23 23:56:31 UTC 2024
    - 63.9K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/query-params-str-validations.md

    ## Псевдонимы параметров
    
    Представьте, что вы хотите использовать query-параметр с названием `item-query`.
    
    Например:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    Но `item-query` является невалидным именем переменной в Python.
    
    Наиболее похожее валидное имя `item_query`.
    
    Но вам всё равно необходим `item-query`...
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  4. 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)
  5. tests/test_forms_from_non_typing_sequences.py

    app = FastAPI()
    
    
    @app.post("/form/python-list")
    def post_form_param_list(items: list = Form()):
        return items
    
    
    @app.post("/form/python-set")
    def post_form_param_set(items: set = Form()):
        return items
    
    
    @app.post("/form/python-tuple")
    def post_form_param_tuple(items: tuple = Form()):
        return items
    
    
    client = TestClient(app)
    
    
    def test_python_list_param_as_form():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/view/admin/joblog/admin_joblog.jsp

                                                </tr>
                                                </thead>
                                                <tbody>
                                                <c:forEach var="data" varStatus="s" items="${jobLogItems}">
                                                    <tr
                                                            data-href="${contextPath}/admin/joblog/details/4/${f:u(data.id)}">
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 11.4K bytes
    - Viewed (0)
  7. docs_src/dependency_testing/tutorial001.py

    
    def test_override_in_items():
        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == {
            "message": "Hello Items!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    def test_override_in_items_with_q():
        response = client.get("/items/?q=foo")
        assert response.status_code == 200
        assert response.json() == {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. docs_src/dependency_testing/tutorial001_an_py310.py

    
    def test_override_in_items():
        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == {
            "message": "Hello Items!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    def test_override_in_items_with_q():
        response = client.get("/items/?q=foo")
        assert response.status_code == 200
        assert response.json() == {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_header_params/test_tutorial003.py

    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"X-Token values": None}),
            ("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}),
            (
                "/items",
                [("x-token", "foo"), ("x-token", "bar")],
                200,
                {"X-Token values": ["foo", "bar"]},
            ),
        ],
    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 12 14:52:00 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_header_params/test_tutorial003_an_py39.py

    
    @needs_py39
    @pytest.mark.parametrize(
        "path,headers,expected_status,expected_response",
        [
            ("/items", None, 200, {"X-Token values": None}),
            ("/items", {"x-token": "foo"}, 200, {"X-Token values": ["foo"]}),
            # TODO: fix this, is it a bug?
            # ("/items", [("x-token", "foo"), ("x-token", "bar")], 200, {"X-Token values": ["foo", "bar"]}),
        ],
    )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top