- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 74 for Method (0.17 sec)
-
docs/en/docs/advanced/generate-clients.md
But I'll show you how to improve that next. ๐ค ## Custom Operation IDs and Better Method Names You can **modify** the way these operation IDs are **generated** to make them simpler and have **simpler method names** in the clients.
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_src/generate_clients/tutorial004.js
const openapiContent = JSON.parse(data) const paths = openapiContent.paths for (const pathKey of Object.keys(paths)) { const pathData = paths[pathKey] for (const method of Object.keys(pathData)) { const operation = pathData[method] if (operation.tags && operation.tags.length > 0) { const tag = operation.tags[0] const operationId = operation.operationId const toRemove = `${tag}-`
JavaScript - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 14 11:40:05 GMT 2024 - 1K bytes - Viewed (0) -
fastapi/utils.py
operation_id = f"{operation_id}_{method.lower()}" return operation_id def generate_unique_id(route: "APIRoute") -> str: operation_id = f"{route.name}{route.path_format}" operation_id = re.sub(r"\W", "_", operation_id) assert route.methods operation_id = f"{operation_id}_{list(route.methods)[0].lower()}" return operation_id
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.8K bytes - Viewed (0) -
docs/en/docs/tutorial/first-steps.md
"Operation" here refers to one of the HTTP "methods". One of: * `POST` * `GET` * `PUT` * `DELETE` ...and the more exotic ones: * `OPTIONS` * `HEAD` * `PATCH` * `TRACE` In the HTTP protocol, you can communicate to each path using one (or more) of these "methods". --- When building APIs, you normally use these specific HTTP methods to perform a specific action.
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) -
docs/en/docs/how-to/custom-request-and-route.md
``` ### Create a custom `GzipRoute` class Next, we create a custom subclass of `fastapi.routing.APIRoute` that will make use of the `GzipRequest`. This time, it will overwrite the method `APIRoute.get_route_handler()`. This method returns a function. And that function is what will receive a request and return a response. Here we use it to create a `GzipRequest` from the original request. ```Python hl_lines="18-26"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Mar 31 23:52:53 GMT 2024 - 4.4K bytes - Viewed (0) -
docs/en/docs/tutorial/response-model.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/em/docs/tutorial/first-steps.md
#### ๐ฌ *โก ๐ ๏ธ ๐จโ๐จ* ```Python hl_lines="6" {!../../../docs_src/first_steps/tutorial001.py!} ``` `@app.get("/")` ๐ฌ **FastAPI** ๐ ๐ข โถ๏ธ๏ธ ๐ ๐ ๐ ๐จ ๐ ๐ถ: * โก `/` * โ๏ธ <abbr title="an HTTP GET method"><code>get</code> ๐ ๏ธ</abbr> !!! info "`@decorator` โน" ๐ `@something` โ ๐ ๐ค "๐จโ๐จ". ๐ ๐ฎ โซ๏ธ ๐ ๐ ๐ข. ๐ ๐ถ ๐ ๐ (๐ค ๐ญ ๐ ๐โ โ ๐ โช๏ธโก๏ธ). "๐จโ๐จ" โ ๐ข ๐ & ๐จ ๐ณ โฎ๏ธ โซ๏ธ.
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) -
docs/ja/docs/tutorial/first-steps.md
#### *ใในใชใใฌใผใทใงใณใใณใฌใผใฟ*ใๅฎ็พฉ ```Python hl_lines="6" {!../../../docs_src/first_steps/tutorial001.py!} ``` `@app.get("/")`ใฏ็ดไธใฎ้ขๆฐใไธ่จใฎใชใฏใจในใใฎๅฆ็ใๆ ๅฝใใใใจใ**FastAPI**ใซไผใใพใ: * ใใน `/` * <abbr title="an HTTP GET method"><code>get</code> ใชใใฌใผใทใงใณ</abbr> !!! info "`@decorator` ใซใคใใฆ" Pythonใซใใใ`@something`ใทใณใฟใใฏในใฏใใณใฌใผใฟใจๅผใฐใใพใใ ใใใณใฌใผใฟใใฏ้ขๆฐใฎไธใซ็ฝฎใใพใใใใใใใใ่ฃ ้ฃพ็ใชๅธฝๅญใฎใใใงใ๏ผใใฎ็จ่ชใฎ็ฑๆฅใฏใใใซใใใจๆใใพใ๏ผใ ใใใณใฌใผใฟใใฏ็ดไธใฎ้ขๆฐใๅใๅใใใใใไฝฟใฃใฆไฝใใ่กใใพใใ
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) -
docs/en/docs/alternatives.md
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. * Use HTTP method names (operations) directly, in a straightforward and intuitive way. * Have sensible defaults, but powerful customizations.
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) -
docs/en/docs/how-to/async-sql-encode-databases.md
## Create notes Create the *path operation function* to create notes: ```Python hl_lines="61-65" {!../../../docs_src/async_sql_databases/tutorial001.py!} ``` !!! info In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`.
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)