Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 377 for item_1 (0.03 sec)

  1. docs/es/docs/tutorial/handling-errors.md

    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Pero si el cliente solicita `http://example.com/items/bar` (un `item_id` inexistente `"bar"`), ese cliente recibirá un código de estado HTTP de 404 (el error "no encontrado"), y un response JSON de:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | Consejo
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. docs/uk/docs/tutorial/query-params.md

    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    або
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    або
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    або
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    або будь-який інший варіант написання (великі літери, перша літера велика тощо), ваша функція побачить параметр `short` зі значенням `True` з типом даних `bool`. В іншому випадку – `False`.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_additional_responses/test_tutorial003.py

            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/items/{item_id}": {
                    "get": {
                        "responses": {
                            "404": {
                                "description": "The item was not found",
                                "content": {
                                    "application/json": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_params_str_validations/test_tutorial006.py

        response = client.get("/items/", params={"q": "fixedquery"})
        assert response.status_code == 200
        assert response.json() == {
            "items": [{"item_id": "Foo"}, {"item_id": "Bar"}],
            "q": "fixedquery",
        }
    
    
    def test_query_params_str_validations_q_fixedquery_too_short(client: TestClient):
        response = client.get("/items/", params={"q": "fa"})
        assert response.status_code == 422
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. 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)
  6. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial002.py

    from docs_src.path_operation_advanced_configuration.tutorial002_py39 import app
    
    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() == {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/query-params.md

    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    or
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    or
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    or
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    or any other case variation (uppercase, first letter in uppercase, etc), your function will see the parameter `short` with a `bool` value of `True`. Otherwise as `False`.
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/query-params.md

    В этом случае, если вы сделаете запрос:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. 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)
  10. tests/test_tutorial/test_custom_response/test_tutorial001.py

        client = TestClient(mod.app)
        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
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top