Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Truong (0.17 sec)

  1. docs/vi/docs/features.md

    Bạn sẽ có được auto-completion trong code, thậm chí trước đó là không thể. Như trong ví dụ, khóa `price` bên trong một JSON (đó có thể được lồng nhau) đến từ một request.
    
    Không còn nhập sai tên khóa, quay đi quay lại giữa các tài liệu hoặc cuộn lên cuộn xuống để tìm xem cuối cùng bạn đã sử dụng `username` hay `user_name`.
    
    ### Ngắn gọn
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body/test_tutorial001_py310.py

        assert response.json() == {
            "name": "Foo",
            "description": None,
            "price": 50.5,
            "tax": None,
        }
    
    
    @needs_py310
    def test_wrong_headers(client: TestClient):
        data = '{"name": "Foo", "price": 50.5}'
        response = client.post(
            "/items/", content=data, headers={"Content-Type": "text/plain"}
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15K bytes
    - Viewed (2)
  3. tests/test_tutorial/test_body/test_tutorial001.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Foo",
            "description": None,
            "price": 50.5,
            "tax": None,
        }
    
    
    def test_wrong_headers(client: TestClient):
        data = '{"name": "Foo", "price": 50.5}'
        response = client.post(
            "/items/", content=data, headers={"Content-Type": "text/plain"}
        )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (7)
  4. tests/test_ws_router.py

        ) as websocket:
            data = websocket.receive_text()
            assert data == "path/to/file"
            data = websocket.receive_text()
            assert data == "a_query_param"
    
    
    def test_wrong_uri():
        """
        Verify that a websocket connection to a non-existent endpoing returns in a shutdown
        """
        client = TestClient(app)
        with pytest.raises(WebSocketDisconnect) as e:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    * 📝 Fix typo in `docs/en/docs/advanced/behind-a-proxy.md`. PR [#5681](https://github.com/tiangolo/fastapi/pull/5681) by [@Leommjr](https://github.com/Leommjr).
    * ✏ Fix wrong import from typing module in Persian translations for `docs/fa/docs/index.md`. PR [#6083](https://github.com/tiangolo/fastapi/pull/6083) by [@Kimiaattaei](https://github.com/Kimiaattaei).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  6. docs/vi/docs/index.md

    ---
    
    Quay trở lại ví dụ trước, **FastAPI** sẽ thực hiện:
    
    * Kiểm tra xem có một `item_id` trong đường dẫn với các request `GET` và `PUT` không?
    * Kiểm tra xem `item_id` có phải là kiểu `int` trong các request `GET` và `PUT` không?
        * Nếu không, client sẽ thấy một lỗi rõ ràng và hữu ích.
    * Kiểm tra xem nếu có một tham số `q` trong query string (ví dụ như `http://127.0.0.1:8000/items/foo?q=somequery`) cho request `GET`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  7. docs/vi/docs/tutorial/index.md

    Nó cũng được xây dựng để làm việc như một tham chiếu trong tương lai.
    
    Do đó bạn có thể quay lại và tìm chính xác những gì bạn cần.
    
    ## Chạy mã
    
    Tất cả các code block có thể được sao chép và sử dụng trực tiếp (chúng thực chất là các tệp tin Python đã được kiểm thử).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Sep 02 15:44:17 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/response-status-code.md

        * An example is `404`, for a "Not Found" response.
        * For generic errors from the client, you can just use `400`.
    * `500` and above are for server errors. You almost never use them directly. When something goes wrong at some part in your application code, or server, it will automatically return one of these status codes.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 4K bytes
    - Viewed (0)
  9. docs/en/docs/features.md

    You will get completion in code you might even consider impossible before. As for example, the `price` key inside a JSON body (that could have been nested) that comes from a request.
    
    No more typing the wrong key names, coming back and forth between docs, or scrolling up and down to find if you finally used `username` or `user_name`.
    
    ### Short
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  10. docs/vi/docs/tutorial/first-steps.md

    "Toán tử" ở đây được nhắc tới là một trong các "phương thức" HTTP.
    
    Một trong những:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...và một trong những cái còn lại:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    Trong giao thức HTTP, bạn có thể giao tiếp trong mỗi đường dẫn sử dụng một (hoặc nhiều) trong các "phương thức này".
    
    ---
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Sep 02 15:44:17 GMT 2023
    - 11.2K bytes
    - Viewed (0)
Back to top