Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 334 for Messages (0.14 sec)

  1. docs/em/docs/tutorial/first-steps.md

    ```
    
    ๐Ÿ‘ˆ โธ ๐ŸŽฆ ๐Ÿ“› ๐ŸŒโ” ๐Ÿ‘† ๐Ÿ“ฑ โž– ๐Ÿฆ, ๐Ÿ‘† ๐Ÿ‡ง๐Ÿ‡ฟ ๐ŸŽฐ.
    
    ### โœ… โšซ๏ธ
    
    ๐Ÿ“‚ ๐Ÿ‘† ๐Ÿ–ฅ <a href="http://127.0.0.1:8000" class="external-link" target="_blank">http://127.0.0.1:8000</a>.
    
    ๐Ÿ‘† ๐Ÿ”œ ๐Ÿ‘€ ๐ŸŽป ๐Ÿ“จ:
    
    ```JSON
    {"message": "Hello World"}
    ```
    
    ### ๐ŸŽ“ ๐Ÿ› ๏ธ ๐Ÿฉบ
    
    ๐Ÿ”œ ๐Ÿšถ <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/first-steps.md

    ### Check it
    
    Open your browser at <a href="http://127.0.0.1:8000" class="external-link" target="_blank">http://127.0.0.1:8000</a>.
    
    You will see the JSON response as:
    
    ```JSON
    {"message": "Hello World"}
    ```
    
    ### Interactive API docs
    
    Now go to <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>.
    
    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)
  3. docs/ja/docs/tutorial/handling-errors.md

    ```
    
    ใ“ใ“ใงใ€`/unicorns/yolo`ใ‚’ใƒชใ‚ฏใ‚จใ‚นใƒˆใ™ใ‚‹ใจใ€*path operation*ใฏ`UnicornException`ใ‚’`raise`ใ—ใพใ™ใ€‚
    
    ใ—ใ‹ใ—ใ€ใ“ใ‚Œใฏ`unicorn_exception_handler`ใงๅ‡ฆ็†ใ•ใ‚Œใพใ™ใ€‚
    
    ใใฎใŸใ‚ใ€HTTPใ‚นใƒ†ใƒผใ‚ฟใ‚นใ‚ณใƒผใƒ‰ใŒ`418`ใงใ€JSONใฎๅ†…ๅฎนใŒไปฅไธ‹ใฎใ‚ˆใ†ใชๆ˜Ž็ขบใชใ‚จใƒฉใƒผใ‚’ๅ—ใ‘ๅ–ใ‚‹ใ“ใจใซใชใ‚Šใพใ™:
    
    ```JSON
    {"message": "Oops! yolo did something. There goes a rainbow..."}
    ```
    
    !!! note "ๆŠ€่ก“่ฉณ็ดฐ"
        ใพใŸใ€`from starlette.requests import Request`ใจ`from starlette.responses import JSONResponse`ใ‚’ไฝฟ็”จใ™ใ‚‹ใ“ใจใ‚‚ใงใใพใ™ใ€‚
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/first-steps.md

    ```
    
    ใ“ใฎ่กŒใฏใƒญใƒผใ‚ซใƒซใƒžใ‚ทใƒณใงใ‚ขใƒ—ใƒชใŒๆไพ›ใ•ใ‚Œใฆใ„ใ‚‹URLใ‚’็คบใ—ใฆใ„ใพใ™ใ€‚
    
    ### ใƒใ‚งใƒƒใ‚ฏ
    
    ใƒ–ใƒฉใ‚ฆใ‚ถใง<a href="http://127.0.0.1:8000" class="external-link" target="_blank">http://127.0.0.1:8000</a>ใ‚’้–‹ใใพใ™ใ€‚
    
    ๆฌกใฎใ‚ˆใ†ใชJSONใƒฌใ‚นใƒใƒณใ‚นใŒ่กจ็คบใ•ใ‚Œใพใ™:
    
    ```JSON
    {"message": "Hello World"}
    ```
    
    ### ๅฏพ่ฉฑ็š„APIใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆ
    
    ๆฌกใซใ€<a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>ใซใ‚ขใ‚ฏใ‚ปใ‚นใ—ใพใ™ใ€‚
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. docs/en/docs/alternatives.md

    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    The FastAPI counterpart API *path operation* could look like:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    See the similarities in `requests.get(...)` and `@app.get(...)`.
    
    !!! check "Inspired **FastAPI** to"
        * Have a simple and intuitive API.
    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)
  6. docs/em/docs/alternatives.md

    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    FastAPI ๐Ÿ˜‘ ๐Ÿ› ๏ธ *โžก ๐Ÿ› ๏ธ* ๐Ÿ’ช ๐Ÿ‘€ ๐Ÿ’–:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    ๐Ÿ‘€ ๐Ÿ”€ `requests.get(...)` &amp; `@app.get(...)`.
    
    !!! check "๐Ÿ˜ฎ **FastAPI** "
        * โœ”๏ธ ๐Ÿ™… &amp; ๐Ÿ‹๏ธ ๐Ÿ› ๏ธ.
        * โš™๏ธ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ‘ฉโ€๐Ÿ”ฌ ๐Ÿ“› (๐Ÿ› ๏ธ) ๐Ÿ”—, ๐ŸŽฏ &amp; ๐Ÿ‹๏ธ ๐ŸŒŒ.
        * โœ”๏ธ ๐Ÿค” ๐Ÿ”ข, โœ‹๏ธ ๐Ÿ‹๏ธ ๐Ÿ›ƒ.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  7. tests/test_include_router_defaults_overrides.py

            warnings.simplefilter("always")
            response = client.get("/openapi.json")
            assert issubclass(w[-1].category, UserWarning)
            assert "Duplicate Operation ID" in str(w[-1].message)
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/override1": {
                    "get": {
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 358.6K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/additional-responses.md

    ```json hl_lines="4-16"
    {
        "components": {
            "schemas": {
                "Message": {
                    "title": "Message",
                    "required": [
                        "message"
                    ],
                    "type": "object",
                    "properties": {
                        "message": {
                            "title": "Message",
                            "type": "string"
                        }
                    }
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 15:53:39 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_path_params/test_tutorial005.py

        assert response.status_code == 200
        assert response.json() == {"model_name": "alexnet", "message": "Deep Learning FTW!"}
    
    
    def test_get_enums_lenet():
        response = client.get("/models/lenet")
        assert response.status_code == 200
        assert response.json() == {"model_name": "lenet", "message": "LeCNN all the images"}
    
    
    def test_get_enums_resnet():
        response = client.get("/models/resnet")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 5K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_files/test_tutorial001_02_an.py

        response = client.post("/files/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "No file sent"}
    
    
    def test_post_uploadfile_no_body():
        response = client.post("/uploadfile/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "No upload file sent"}
    
    
    def test_post_file(tmp_path):
        path = tmp_path / "test.txt"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 8.2K bytes
    - Viewed (0)
Back to top