Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for puts (0.13 sec)

  1. docs/en/docs/alternatives.md

    !!! check "**FastAPI** uses it to"
        Handle all the data validation, data serialization and automatic model documentation (based on JSON Schema).
    
        **FastAPI** then takes that JSON Schema data and puts it in OpenAPI, apart from all the other things it does.
    
    ### <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  2. docs/en/docs/python-types.md

    For example, let's define a variable to be a `list` of `str`.
    
    === "Python 3.9+"
    
        Declare the variable, with the same colon (`:`) syntax.
    
        As the type, put `list`.
    
        As the list is a type that contains some internal types, you put them in square brackets:
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/python_types/tutorial006_py39.py!}
        ```
    
    === "Python 3.8+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_bigger_applications/test_main_an.py

                ]
            }
        )
    
    
    def test_put_invalid_header(client: TestClient):
        response = client.put("/items/foo", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_put(client: TestClient):
        response = client.put(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

            }
        )
    
    
    @needs_py39
    def test_put_invalid_header(client: TestClient):
        response = client.put("/items/foo", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    @needs_py39
    def test_put(client: TestClient):
        response = client.put(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  5. docs/pl/docs/index.md

        * Swagger UI.
        * ReDoc.
    
    ---
    
    Wracając do poprzedniego przykładu, **FastAPI** :
    
    * Potwierdzi, że w ścieżce jest `item_id` dla żądań `GET` i `PUT`.
    * Potwierdzi, że `item_id` jest typu `int` dla żądań `GET` i `PUT`.
        * Jeżeli nie jest, odbiorca zobaczy przydatną, przejrzystą wiadomość z błędem.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  6. docs/ru/docs/index.md

        * Swagger UI.
        * ReDoc.
    
    ---
    
    Возвращаясь к предыдущему примеру кода, **FastAPI** будет:
    
    * Проверять наличие `item_id` в пути для запросов `GET` и `PUT`.
    * Проверять, что `item_id` имеет тип `int` для запросов `GET` и `PUT`.
        * Если это не так, клиент увидит полезную чёткую ошибку.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  7. docs/it/docs/index.md

        * Swagger UI.
        * ReDoc.
    
    ---
    
    Tornando al precedente esempio, **FastAPI**:
    
    * Validerà che esiste un `item_id` nel percorso delle richieste `GET` e `PUT`.
    * Validerà che `item_id` sia di tipo `int` per le richieste `GET` e `PUT`.
        * Se non lo è, il client vedrà un errore chiaro e utile.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 23:58:47 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/first-steps.md

    При создании API, "путь" является основным способом разделения "задач" и "ресурсов".
    
    #### Операция (operation)
    
    "Операция" это один из "методов" HTTP.
    
    Таких, как:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...и более экзотических:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    По протоколу HTTP можно обращаться к каждому пути, используя один (или несколько) из этих "методов".
    
    ---
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/first-steps.md

    While building an API, the "path" is the main way to separate "concerns" and "resources".
    
    #### Operation
    
    "Operation" here refers to one of the HTTP "methods".
    
    One of:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...and the more exotic ones:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    In the HTTP protocol, you can communicate to each path using one (or more) of these "methods".
    
    ---
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  10. docs/zh/docs/index.md

    ---
    
    回到前面的代码示例,**FastAPI** 将会:
    
    * 校验 `GET` 和 `PUT` 请求的路径中是否含有 `item_id`。
    * 校验 `GET` 和 `PUT` 请求中的 `item_id` 是否为 `int` 类型。
        * 如果不是,客户端将会收到清晰有用的错误信息。
    * 检查 `GET` 请求中是否有命名为 `q` 的可选查询参数(比如 `http://127.0.0.1:8000/items/foo?q=somequery`)。
        * 因为 `q` 被声明为 `= None`,所以它是可选的。
        * 如果没有 `None` 它将会是必需的 (如 `PUT` 例子中的请求体)。
    * 对于访问 `/items/{item_id}` 的 `PUT` 请求,将请求体读取为 JSON 并:
        * 检查是否有必需属性 `name` 并且值为 `str` 类型 。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 18.2K bytes
    - Viewed (0)
Back to top