- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for Exchange (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)