Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 909 for item01 (0.04 seconds)

  1. docs_src/path_params_numeric_validations/tutorial006_an_py39.py

    from typing import Annotated
    
    from fastapi import FastAPI, Path, Query
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        *,
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
        q: str,
        size: Annotated[float, Query(gt=0, lt=10.5)],
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
        if size:
            results.update({"size": size})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Aug 28 23:39:15 GMT 2024
    - 447 bytes
    - Click Count (0)
  2. docs/ru/docs/tutorial/query-params-str-validations.md

    ## Псевдонимы параметров { #alias-parameters }
    
    Представьте, что вы хотите, чтобы параметр назывался `item-query`.
    
    Например:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    Но `item-query` — недопустимое имя переменной в Python.
    
    Ближайший вариант — `item_query`.
    
    Но вам всё равно нужно именно `item-query`...
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 26.2K bytes
    - Click Count (0)
  3. 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,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  4. docs/de/docs/tutorial/query-params-str-validations.md

    Stellen Sie sich vor, Sie möchten, dass der Parameter `item-query` ist.
    
    Wie in:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    Aber `item-query` ist kein gültiger Name für eine Variable in Python.
    
    Der am ähnlichsten wäre `item_query`.
    
    Aber Sie benötigen dennoch, dass er genau `item-query` ist ...
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 19.1K bytes
    - Click Count (0)
  5. 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(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 47.7K bytes
    - Click Count (0)
  6. docs_src/dependencies/tutorial008d_py39.py

            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
                status_code=404, detail="Item not found, there's only a plumbus here"
            )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 694 bytes
    - Click Count (0)
  7. docs_src/dependencies/tutorial008d_an_py39.py

            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
                status_code=404, detail="Item not found, there's only a plumbus here"
            )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 734 bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

      private void testItems() {
        for (Object item : Iterables.concat(equalityGroups)) {
          assertTrue(item + " must not be Object#equals to null", !item.equals(null));
          assertTrue(
              item + " must not be Object#equals to an arbitrary object of another class",
              !item.equals(NotAnInstance.EQUAL_TO_NOTHING));
          assertTrue(item + " must be Object#equals to itself", item.equals(item));
          assertEquals(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  9. docs/ko/docs/tutorial/query-params-str-validations.md

    {* ../../docs_src/query_params_str_validations/tutorial008.py hl[13] *}
    
    ## 별칭 매개변수
    
    매개변수가 `item-query`이길 원한다고 가정해 봅시다.
    
    마치 다음과 같습니다:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    그러나 `item-query`은 유효한 파이썬 변수 이름이 아닙니다.
    
    가장 가까운 것은 `item_query`일 겁니다.
    
    하지만 정확히`item-query`이길 원합니다...
    
    이럴 경우 `alias`를 선언할 수 있으며, 해당 별칭은 매개변수 값을 찾는 데 사용됩니다:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 9.2K bytes
    - Click Count (0)
  10. docs/es/docs/advanced/path-operation-advanced-configuration.md

    ```JSON hl_lines="22"
    {
        "openapi": "3.1.0",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
                    "summary": "Read Items",
                    "operationId": "read_items_items__get",
                    "responses": {
                        "200": {
                            "description": "Successful Response",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.3K bytes
    - Click Count (0)
Back to Top