Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 348 for item_id (0.04 sec)

  1. docs/uk/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Оголошення метаданих
    
    Ви можете оголошувати всі ті ж параметри, що і для `Query`.
    
    Наприклад, щоб оголосити значення метаданих `title` для параметра шляху `item_id`, Ви можете написати:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Примітка
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 16:27:21 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial002.py

    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"item_id": "Foo"}]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/query-params.md

    In this case, the function parameter `q` will be optional, and will be `None` by default.
    
    /// check
    
    Also notice that **FastAPI** is smart enough to notice that the path parameter `item_id` is a path parameter and `q` is not, so, it's a query parameter.
    
    ///
    
    ## Query parameter type conversion { #query-parameter-type-conversion }
    
    You can also declare `bool` types, and they will be converted:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/query-params.md

    В этом случае, параметр  `q` будет не обязательным и будет иметь значение `None` по умолчанию.
    
    /// check | Важно
    
    Также обратите внимание, что **FastAPI** достаточно умён чтобы заметить, что параметр `item_id` является path-параметром, а `q` нет, поэтому, это параметр запроса.
    
    ///
    
    ## Преобразование типа параметра запроса { #query-parameter-type-conversion }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/path-params-numeric-validations.md

    ## Pathのインポート
    
    まず初めに、`fastapi`から`Path`をインポートします:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[1] *}
    
    ## メタデータの宣言
    
    パラメータは`Query`と同じものを宣言することができます。
    
    例えば、パスパラメータ`item_id`に対して`title`のメタデータを宣言するには以下のようにします:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[8] *}
    
    /// note | 備考
    
    パスの一部でなければならないので、パスパラメータは常に必須です。
    
    そのため、`...`を使用して必須と示す必要があります。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Jan 04 10:53:58 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_extra_models/test_tutorial003.py

        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
                    "/items/{item_id}": {
                        "get": {
                            "responses": {
                                "200": {
                                    "description": "Successful Response",
                                    "content": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial001.py

        return client
    
    
    def test_get_custom_response(client: TestClient):
        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [{"item_id": "Foo"}]
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Определите метаданные { #declare-metadata }
    
    Вы можете указать все те же параметры, что и для `Query`.
    
    Например, чтобы указать значение метаданных `title` для path-параметра `item_id`, вы можете написать:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Примечание
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  9. docs_src/path_operation_advanced_configuration/tutorial003_py39.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/", include_in_schema=False)
    async def read_items():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 148 bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/bigger-applications.md

    As the path of each *path operation* has to start with `/`, like in:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...the prefix must not include a final `/`.
    
    So, the prefix in this case is `/items`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top