Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Exchange (0.16 sec)

  1. docs/em/docs/advanced/response-change-status-code.md

    ## โš™๏ธ `Response` ๐Ÿ”ข
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐Ÿ”ข ๐Ÿ†Ž `Response` ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข* (๐Ÿ‘† ๐Ÿ’ช ๐Ÿช & ๐ŸŽš).
    
    & โคด๏ธ ๐Ÿ‘† ๐Ÿ’ช โš’ `status_code` ๐Ÿ‘ˆ *๐Ÿ”€* ๐Ÿ“จ ๐ŸŽš.
    
    ```Python hl_lines="1  9  12"
    {!../../../docs_src/response_change_status_code/tutorial001.py!}
    ```
    
    & โคด๏ธ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“จ ๐Ÿ™† ๐ŸŽš ๐Ÿ‘† ๐Ÿ’ช, ๐Ÿ‘† ๐Ÿ›Ž ๐Ÿ”œ ( `dict`, ๐Ÿ’ฝ ๐Ÿท, โ™’๏ธ).
    
    & ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ“ฃ `response_model`, โšซ๏ธ ๐Ÿ”œ โš™๏ธ โ›ฝ & ๐Ÿ—œ ๐ŸŽš ๐Ÿ‘† ๐Ÿ“จ.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  2. docs/en/docs/contributing.md

    * Do not change anything enclosed in "``" (inline code).
    
    * In lines starting with `===` or `!!!`, translate only the ` "... Text ..."` part. Leave the rest unchanged.
    
    * You can translate info boxes like `!!! warning` with for example `!!! warning "Achtung"`. But do not change the word immediately after the `!!!`, it determines the color of the info box.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_response_change_status_code/test_tutorial001.py

    from fastapi.testclient import TestClient
    
    from docs_src.response_change_status_code.tutorial001 import app
    
    client = TestClient(app)
    
    
    def test_path_operation():
        response = client.put("/get-or-create-task/foo")
        print(response.content)
        assert response.status_code == 200, response.text
        assert response.json() == "Listen to the Bar Fighters"
        response = client.put("/get-or-create-task/bar")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 521 bytes
    - Viewed (0)
  4. docs/en/docs/deployment/versions.md

    ## About versions
    
    Following the Semantic Versioning conventions, any version below `1.0.0` could potentially add breaking changes.
    
    FastAPI also follows the convention that any "PATCH" version change is for bug fixes and non-breaking changes.
    
    !!! tip
        The "PATCH" is the last number, for example, in `0.2.3`, the PATCH version is `3`.
    
    So, you should be able to pin to a version like:
    
    ```txt
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Nov 05 20:50:37 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/response-status-code.md

    !!! note "๐Ÿ“ก โ„น"
        ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `from starlette import status`.
    
        **FastAPI** ๐Ÿšš ๐ŸŽ `starlette.status` `fastapi.status` ๐Ÿช ๐Ÿ‘†, ๐Ÿ‘ฉโ€๐Ÿ’ป. โœ‹๏ธ โšซ๏ธ ๐Ÿ‘Ÿ ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ’ƒ.
    
    ## ๐Ÿ”€ ๐Ÿ”ข
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/generate-clients.md

    You would also have **inline errors** for everything.
    
    And whenever you update the backend code, and **regenerate** the frontend, it would have any new *path operations* available as methods, the old ones removed, and any other change would be reflected on the generated code. ๐Ÿค“
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

        Note over client,operation: Response is already sent, can't change it anymore
        opt Tasks
            operation -->> tasks: Send background tasks
        end
        opt Raise other exception
            tasks -->> dep: Raise other exception
        end
        Note over dep: After yield
        opt Handle other exception
            dep -->> dep: Handle exception, can't change response. E.g. close DB session.
        end
    ```
    
    !!! info
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/async-sql-encode-databases.md

    * Create a `database` object.
    
    ```Python hl_lines="3  9  12"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! tip
        If you were connecting to a different database (e.g. PostgreSQL), you would need to change the `DATABASE_URL`.
    
    ## Create the tables
    
    In this case, we are creating the tables in the same Python file, but in production, you would probably want to create them with Alembic, integrated with migrations, etc.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. docs/en/docs/python-types.md

    But, sadly, you get nothing useful:
    
    <img src="/img/python-types/image01.png">
    
    ### Add types
    
    Let's modify a single line from the previous version.
    
    We will change exactly this fragment, the parameters of the function, from:
    
    ```Python
        first_name, last_name
    ```
    
    to:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    That's it.
    
    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)
  10. docs/en/docs/deployment/https.md

    You would probably get a cloud server (a virtual machine) or something similar, and it would have a <abbr title="That doesn't change">fixed</abbr> **public IP address**.
    
    In the DNS server(s) you would configure a record (an "`A record`") to point **your domain** to the public **IP address of your server**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top