- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,916 for FastAPI (0.13 sec)
-
docs/pt/docs/deployment/fastapicloud.md
# FastAPI Cloud { #fastapi-cloud } Você pode implantar sua aplicação FastAPI no <a href="https://fastapicloud.com" class="external-link" target="_blank">FastAPI Cloud</a> com um **único comando**; entre na lista de espera, caso ainda não tenha feito isso. 🚀 ## Login { #login } Certifique-se de que você já tem uma conta no **FastAPI Cloud** (nós convidamos você a partir da lista de espera 😉). Depois, faça login: <div class="termy"> ```consoleRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 19:59:04 UTC 2025 - 2.3K bytes - Viewed (0) -
docs_src/custom_response/tutorial008_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 360 bytes - Viewed (0) -
fastapi/openapi/docs.py
for example the URLs to use to load Swagger UI's JavaScript and CSS. Read more about it in the [FastAPI docs for Configure Swagger UI](https://fastapi.tiangolo.com/how-to/configure-swagger-ui/) and the [FastAPI docs for Custom Docs UI Static Assets (Self-Hosting)](https://fastapi.tiangolo.com/how-to/custom-docs-ui-assets/). """ current_swagger_ui_parameters = swagger_ui_default_parameters.copy()
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 10.1K bytes - Viewed (0) -
docs_src/response_model/tutorial003_05_py310.py
from fastapi import FastAPI, Response from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/portal", response_model=None) async def get_portal(teleport: bool = False) -> Response | dict: if teleport: return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Jan 10 16:22:47 UTC 2023 - 373 bytes - Viewed (0) -
docs/zh/docs/tutorial/handling-errors.md
"size": "XL" } } ``` ### FastAPI `HTTPException` vs Starlette `HTTPException` **FastAPI** 也提供了自有的 `HTTPException`。 **FastAPI** 的 `HTTPException` 继承自 Starlette 的 `HTTPException` 错误类。 它们之间的唯一区别是,**FastAPI** 的 `HTTPException` 可以在响应中添加响应头。 OAuth 2.0 等安全工具需要在内部调用这些响应头。 因此你可以继续像平常一样在代码中触发 **FastAPI** 的 `HTTPException` 。 但注册异常处理器时,应该注册到来自 Starlette 的 `HTTPException`。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 8.2K bytes - Viewed (0) -
docs_src/cors/tutorial001_py39.py
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware app = FastAPI() origins = [ "http://localhost.tiangolo.com", "https://localhost.tiangolo.com", "http://localhost", "http://localhost:8080", ] app.add_middleware( CORSMiddleware, allow_origins=origins, allow_credentials=True, allow_methods=["*"], allow_headers=["*"], ) @app.get("/")Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 459 bytes - Viewed (0) -
docs/es/docs/tutorial/body-multiple-params.md
Por ejemplo, ampliando el modelo anterior, podrías decidir que deseas tener otra clave `importance` en el mismo cuerpo, además de `item` y `user`. Si lo declaras tal cual, debido a que es un valor singular, **FastAPI** asumirá que es un parámetro de query. Pero puedes instruir a **FastAPI** para que lo trate como otra clave del cuerpo usando `Body`:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 5.2K bytes - Viewed (0) -
docs_src/custom_response/tutorial004_py39.py
from fastapi import FastAPI from fastapi.responses import HTMLResponse app = FastAPI() def generate_html_response(): html_content = """ <html> <head> <title>Some HTML in here</title> </head> <body> <h1>Look ma! HTML!</h1> </body> </html> """ return HTMLResponse(content=html_content, status_code=200)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 491 bytes - Viewed (0) -
docs_src/encoder/tutorial001_py310.py
from datetime import datetime from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from pydantic import BaseModel fake_db = {} class Item(BaseModel): title: str timestamp: datetime description: str | None = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 430 bytes - Viewed (0) -
tests/test_return_none_stringified_annotations.py
import http from fastapi import FastAPI from fastapi.testclient import TestClient def test_no_content(): app = FastAPI() @app.get("/no-content", status_code=http.HTTPStatus.NO_CONTENT) def return_no_content() -> "None": return client = TestClient(app) response = client.get("/no-content") assert response.status_code == http.HTTPStatus.NO_CONTENT, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 18:44:43 UTC 2025 - 431 bytes - Viewed (0)