Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Alimin (0.14 sec)

  1. tests/test_tutorial/test_query_params/test_tutorial006_py310.py

                                        "title": "Limit",
                                    }
                                )
                                | IsDict(
                                    # TODO: remove when deprecating Pydantic v1
                                    {"title": "Limit", "type": "integer"}
                                ),
                                "name": "limit",
                                "in": "query",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. .github/workflows/latest-changes.yml

          - name: Setup tmate session
            uses: mxschmitt/action-tmate@v3
            if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
            with:
              limit-access-to-actor: true
          - uses: docker://tiangolo/latest-changes:0.3.0
          # - uses: tiangolo/latest-changes@main
            with:
              token: ${{ secrets.GITHUB_TOKEN }}
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 14:57:33 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. fastapi/param_functions.py

        from typing import Annotated
    
        from fastapi import Depends, FastAPI
    
        app = FastAPI()
    
    
        async def common_parameters(q: str | None = None, skip: int = 0, limit: int = 100):
            return {"q": q, "skip": skip, "limit": limit}
    
    
        @app.get("/items/")
        async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
            return commons
        ```
        """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md

    В обоих случаях она будет иметь:
    
    * Необязательный параметр запроса `q`, представляющий собой `str`.
    * Параметр запроса `skip`, представляющий собой `int`, по умолчанию `0`.
    * Параметр запроса `limit`, представляющий собой `int`, по умолчанию равный `100`.
    
    В обоих случаях данные будут конвертированы, валидированы, документированы по схеме OpenAPI и т.д.
    
    ## Как это использовать
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 12 11:12:19 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/response-model.md

        * This will be used by the **automatic docs**.
        * It will also be used by automatic client code generation tools.
    
    But most importantly:
    
    * It will **limit and filter** the output data to what is defined in the return type.
        * This is particularly important for **security**, we'll see more of that below.
    
    ## `response_model` Parameter
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  6. tests/test_dependency_overrides.py

            "in": "main-depends",
            "params": {"q": "foo", "skip": 0, "limit": 100},
        }
    
    
    def test_main_depends_q_foo_skip_100_limit_200():
        response = client.get("/main-depends/?q=foo&skip=100&limit=200")
        assert response.status_code == 200
        assert response.json() == {
            "in": "main-depends",
            "params": {"q": "foo", "skip": 100, "limit": 200},
        }
    
    
    def test_decorator_depends():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/query-params.md

    上述の例では、`skip=0` と `limit=10` というデフォルト値を持っています。
    
    したがって、以下のURLにアクセスすることは:
    
    ```
    http://127.0.0.1:8000/items/
    ```
    
    以下のURLにアクセスすることと同等になります:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    しかし、例えば、以下にアクセスすると:
    
    ```
    http://127.0.0.1:8000/items/?skip=20
    ```
    
    関数内のパラメータの値は以下の様になります:
    
    * `skip=20`: URL内にセットしたため
    * `limit=10`: デフォルト値
    
    ## オプショナルなパラメータ
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_sql_databases/test_sql_databases.py

                                "required": False,
                                "schema": {
                                    "title": "Limit",
                                    "type": "integer",
                                    "default": 100,
                                },
                                "name": "limit",
                                "in": "query",
                            },
                        ],
                    },
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.1K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py

                                "required": False,
                                "schema": {
                                    "title": "Limit",
                                    "type": "integer",
                                    "default": 100,
                                },
                                "name": "limit",
                                "in": "query",
                            },
                        ],
                    },
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md

        ```
    
    이 매개변수들은 **FastAPI**가 의존성을 "해결"하기 위해 사용할 것입니다
    
    함수와 클래스 두 가지 방식 모두, 아래 요소를 갖습니다:
    
    * `문자열`이면서 선택사항인 쿼리 매개변수 `q`.
    * 기본값이 `0`이면서 `정수형`인 쿼리 매개변수 `skip`
    * 기본값이 `100`이면서 `정수형`인 쿼리 매개변수 `limit`
    
    두 가지 방식 모두, 데이터는 변환, 검증되고 OpenAPI 스키마에 문서화됩니다.
    
    ## 사용해봅시다!
    
    이제 아래의 클래스를 이용해서 의존성을 정의할 수 있습니다.
    
    === "파이썬 3.6 이상"
    
        ```Python hl_lines="19"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top