Search Options

Results per page
Sort
Preferred Languages
Advance

Results 491 - 500 of 1,638 for item2 (0.32 sec)

  1. tests/test_response_model_as_return_annotation.py

    )
    def response_model_model1_annotation_model2_return_invalid_dict() -> Item:
        return {"name": "John"}
    
    
    @app.get(
        "/response_model_model1-annotation_model2-return_invalid_model", response_model=User
    )
    def response_model_model1_annotation_model2_return_invalid_model() -> Item:
        return Item(name="Foo", price=42.0)
    
    
    @app.get(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 14 09:49:57 UTC 2023
    - 47.7K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/handling-errors.md

    Если клиент запросит `http://example.com/items/foo` (`item_id` `"foo"`), то он получит статус-код 200 и ответ в формате JSON:
    
    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Но если клиент запросит `http://example.com/items/bar` (несуществующий `item_id` `"bar"`), то он получит статус-код 404 (ошибка "не найдено") и JSON-ответ в виде:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | "Подсказка"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/handling-errors.md

    ```
    
    ### 📉 📨
    
    🚥 👩‍💻 📨 `http://example.com/items/foo` ( `item_id` `"foo"`), 👈 👩‍💻 🔜 📨 🇺🇸🔍 👔 📟 2️⃣0️⃣0️⃣, & 🎻 📨:
    
    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    ✋️ 🚥 👩‍💻 📨 `http://example.com/items/bar` (🚫-🚫 `item_id` `"bar"`), 👈 👩‍💻 🔜 📨 🇺🇸🔍 👔 📟 4️⃣0️⃣4️⃣ ("🚫 🔎" ❌), & 🎻 📨:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/view/admin/storage/admin_storage.jsp

                                    </a>
                                    <c:forEach var="item" varStatus="s" items="${pathItems}">
                                        / <span><a
                                            href="${contextPath}/admin/storage/list/${f:u(item.id)}/">${f:h(item.name)}</a></span>
                                    </c:forEach>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu May 26 01:48:41 UTC 2022
    - 20.4K bytes
    - Viewed (0)
  5. docs/en/docs/python-types.md

    ///
    
    That means: "the variable `items` is a `list`, and each of the items in this list is a `str`".
    
    /// tip
    
    If you use Python 3.9 or above, you don't have to import `List` from `typing`, you can use the same regular `list` type instead.
    
    ///
    
    By doing that, your editor can provide support even while processing items from the list:
    
    <img src="/img/python-types/image05.png">
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:47:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/view/admin/elevateword/admin_elevateword_edit.jsp

                                <li class="breadcrumb-item active"><la:link href="/admin/elevateword">
                                    <la:message key="labels.elevate_word_link_list"/>
                                </la:link></li>
                                <c:if test="${crudMode == 1}">
                                    <li class="breadcrumb-item active"><la:message
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 9.2K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/query-params-str-validations.md

    {!../../docs_src/query_params_str_validations/tutorial008.py!}
    ```
    
    ## 별칭 매개변수
    
    매개변수가 `item-query`이길 원한다고 가정해 봅시다.
    
    마치 다음과 같습니다:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    그러나 `item-query`은 유효한 파이썬 변수 이름이 아닙니다.
    
    가장 가까운 것은 `item_query`일 겁니다.
    
    하지만 정확히`item-query`이길 원합니다...
    
    이럴 경우 `alias`를 선언할 수 있으며, 해당 별칭은 매개변수 값을 찾는 데 사용됩니다:
    
    ```Python hl_lines="9"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="13"
    {!../../docs_src/query_params_str_validations/tutorial008.py!}
    ```
    
    ## 别名参数
    
    假设你想要查询参数为 `item-query`。
    
    像下面这样:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    但是 `item-query` 不是一个有效的 Python 变量名称。
    
    最接近的有效名称是 `item_query`。
    
    但是你仍然要求它在 URL 中必须是 `item-query`...
    
    这时你可以用 `alias` 参数声明一个别名,该别名将用于在 URL 中查找查询参数值:
    
    ```Python hl_lines="9"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. cmd/api-response.go

    	VersionID string `xml:"VersionId"`
    }
    
    // Metadata metadata items implemented to ensure XML marshaling works.
    type Metadata struct {
    	Items []struct {
    		Key   string
    		Value string
    	}
    }
    
    // Set add items, duplicate items get replaced.
    func (s *Metadata) Set(k, v string) {
    	for i, item := range s.Items {
    		if item.Key == k {
    			s.Items[i] = struct {
    				Key   string
    				Value string
    			}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  10. fastapi/encoders.py

            return encoded_dict
        if isinstance(obj, (list, set, frozenset, GeneratorType, tuple, deque)):
            encoded_list = []
            for item in obj:
                encoded_list.append(
                    jsonable_encoder(
                        item,
                        include=include,
                        exclude=exclude,
                        by_alias=by_alias,
                        exclude_unset=exclude_unset,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top