Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 1,205 for itens (0.03 sec)

  1. tests/test_tutorial/test_body/test_tutorial004.py

        response = client.put(
            "/items/123",
            json={"name": "Foo", "price": 50.1},
        )
        assert response.status_code == 200
        assert response.json() == {
            "item_id": 123,
            "name": "Foo",
            "price": 50.1,
            "description": None,
            "tax": None,
        }
    
    
    def test_put_with_no_data(client: TestClient):
        response = client.put("/items/123", json={})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/path-params.md

    La valeur du paramètre `item_id` sera transmise à la fonction dans l'argument `item_id`.
    
    Donc, si vous exécutez cet exemple et allez sur <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a>,
    vous verrez comme réponse :
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Paramètres de chemin typés
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java

                        request.getArtifact(),
                        request.getRemoteRepositories());
            }
        }
    
        private static <T> List<T> toList(Collection<T> items) {
            return (items != null) ? new ArrayList<>(items) : null;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. docs/zh/docs/advanced/security/oauth2-scopes.md

    ## 在*路径操作*与依赖项中声明作用域
    
    接下来,为*路径操作*  `/users/me/items/` 声明作用域 `items`。
    
    为此,要从 `fastapi` 中导入并使用 `Security` 。
    
    `Security` 声明依赖项的方式和 `Depends` 一样,但 `Security` 还能接收作用域(字符串)列表类型的参数 `scopes`。
    
    此处使用与 `Depends` 相同的方式,把依赖项函数 `get_current_active_user` 传递给 `Security`。
    
    同时,还传递了作用域**列表**,本例中只传递了一个作用域:`items`(此处支持传递更多作用域)。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 29 20:41:04 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. docs/uk/docs/index.md

    ### Перевірте
    
    Відкрийте браузер та введіть адресу <a href="http://127.0.0.1:8000/items/5?q=somequery" class="external-link" target="_blank">http://127.0.0.1:8000/items/5?q=somequery</a>.
    
    Ви побачите у відповідь подібний JSON:
    
    ```JSON
    {"item_id": 5, "q": "somequery"}
    ```
    
    Ви вже створили API, який:
    
    * Отримує HTTP запити за _шляхами_ `/` та `/items/{item_id}`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/view/searchResults.jsp

    		<c:if test="${facetResponse != null}">
    			<c:forEach var="fieldData" items="${facetResponse.fieldList}">
    				<c:if
    					test="${fieldData.name == 'label' && fieldData.valueCountMap.size() > 0}">
    					<ul class="list-group mb-2">
    						<li class="list-group-item text-uppercase"><la:message
    								key="labels.facet_label_title" /></li>
    						<c:forEach var="countEntry" items="${fieldData.valueCountMap}">
    							<c:if
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 13 05:54:52 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

    
    def test_post(client: TestClient):
        yaml_data = """
            name: Deadpoolio
            tags:
            - x-force
            - x-men
            - x-avengers
            """
        response = client.post("/items/", content=yaml_data)
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Deadpoolio",
            "tags": ["x-force", "x-men", "x-avengers"],
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  8. docs/es/docs/advanced/security/oauth2-scopes.md

    Si no seleccionas ningún scope, estarás "autenticado", pero cuando intentes acceder a `/users/me/` o `/users/me/items/` obtendrás un error diciendo que no tienes suficientes permisos. Aún podrás acceder a `/status/`.
    
    Y si seleccionas el scope `me` pero no el scope `items`, podrás acceder a `/users/me/` pero no a `/users/me/items/`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 10:15:01 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/security/oauth2-scopes.md

    Und wenn Sie den Scope `me`, aber nicht den Scope `items` auswählen, können Sie auf `/users/me/` zugreifen, aber nicht auf `/users/me/items/`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/path-params.md

    运行示例并访问 <a href="http://127.0.0.1:8000/items/3" class="external-link" target="_blank">http://127.0.0.1:8000/items/3</a>,返回的响应如下:
    
    ```JSON
    {"item_id":3}
    ```
    
    /// check | 检查
    
    注意,函数接收并返回的值是 `3`( `int`),不是 `"3"`(`str`)。
    
    **FastAPI** 通过类型声明自动<abbr title="将来自 HTTP 请求中的字符串转换为 Python 数据类型">**解析**请求中的数据</abbr>。
    
    ///
    
    ## 数据校验
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 15 16:43:19 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top