- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 362 for same (0.19 sec)
-
docs/en/docs/advanced/openapi-webhooks.md
!!! info The `app.webhooks` object is actually just an `APIRouter`, the same type you would use when structuring your app with multiple files. Notice that with webhooks you are actually not declaring a *path* (like `/items/`), the text you pass there is just an **identifier** of the webhook (the name of the event), for example in `@app.webhooks.post("new-subscription")`, the webhook name is `new-subscription`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 2.8K bytes - Viewed (0) -
docs/en/docs/features.md
def main(user_id: str): return user_id # A Pydantic model class User(BaseModel): id: int name: str joined: date ``` That can then be used like: ```Python my_user: User = User(id=3, name="John Doe", joined="2018-07-19") second_user_data = { "id": 4, "name": "Mary", "joined": "2018-11-30", } my_second_user: User = User(**second_user_data) ``` !!! info
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) -
docs/en/docs/tutorial/security/simple-oauth2.md
You should never save plaintext passwords, so, we'll use the (fake) password hashing system. If the passwords don't match, we return the same error. #### Password hashing "Hashing" means: converting some content (a password in this case) into a sequence of bytes (just a string) that looks like gibberish. Whenever you pass exactly the same content (exactly the same password) you get exactly the same gibberish.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
#### ๐ โ: ```Python connect_args={"check_same_thread": False} ``` ...๐ช ๐ด `SQLite`. โซ๏ธ ๐ซ ๐ช ๐ ๐ฝ. !!! info "๐ก โน" ๐ข ๐ ๐ ๐ด โ 1๏ธโฃ ๐งต ๐ โฎ๏ธ โซ๏ธ, ๐ค ๐ ๐ ๐งต ๐ ๐ต ๐ฌ ๐จ. ๐ โ ๐ซ ๐ค ๐ ๐ ๐ ๐ (๐ ๐จ). โ๏ธ FastAPI, โ๏ธ ๐ ๐ข (`def`) ๐ ๐ 1๏ธโฃ ๐งต ๐ช ๐ โฎ๏ธ ๐ฝ ๐ ๐จ, ๐ฅ ๐ช โ ๐ ๐ญ ๐ โซ๏ธ ๐ โ ๐ โฎ๏ธ `connect_args={"check_same_thread": False}`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
docs/en/docs/advanced/security/http-basic-auth.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 14:33:05 GMT 2024 - 5.9K bytes - Viewed (0) -
docs/en/docs/async.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
```Python hl_lines="7 13" {!> ../../../docs_src/request_files/tutorial001_03.py!} ``` ## Multiple File Uploads It's possible to upload several files at the same time. They would be associated to the same "form field" sent using "form data". To use that, declare a list of `bytes` or `UploadFile`: === "Python 3.9+" ```Python hl_lines="10 15"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 10.2K bytes - Viewed (0) -
docs/en/docs/advanced/openapi-callbacks.md
The process that happens when your API app calls the *external API* is named a "callback". Because the software that the external developer wrote sends a request to your API and then your API *calls back*, sending a request to an *external API* (that was probably created by the same developer).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 7.7K bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial007.py
from typing import List import yaml from fastapi import FastAPI, HTTPException, Request from pydantic import BaseModel, ValidationError app = FastAPI() class Item(BaseModel): name: str tags: List[str] @app.post( "/items/", openapi_extra={ "requestBody": { "content": {"application/x-yaml": {"schema": Item.model_json_schema()}}, "required": True, }, },
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 822 bytes - Viewed (0) -
docs/en/docs/advanced/websockets.md
<img src="/img/tutorial/websockets/image04.png"> And all of them will use the same WebSocket connection. ## Using `Depends` and others In WebSocket endpoints you can import from `fastapi` and use: * `Depends` * `Security` * `Cookie` * `Header` * `Path` * `Query` They work the same way as for other FastAPI endpoints/*path operations*: === "Python 3.10+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 6.2K bytes - Viewed (0)