- Sort Score
- Num 10 results
- Language All
Results 741 - 750 of 1,377 for app (0.15 seconds)
-
tests/test_tutorial/test_using_request_directly/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.using_request_directly.tutorial001_py39 import app client = TestClient(app) def test_path_operation(): response = client.get("/items/foo") assert response.status_code == 200 assert response.json() == {"client_host": "testclient", "item_id": "foo"} def test_openapi(): response = client.get("/openapi.json") assert response.status_code == 200
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.8K bytes - Click Count (0) -
docs/zh/docs/tutorial/first-steps.md
在我们的例子中,这个装饰器告诉 **FastAPI** 位于其下方的函数对应着**路径** `/` 加上 `get` **操作**。 它是一个「**路径操作装饰器**」。 /// 你也可以使用其他的操作: * `@app.post()` * `@app.put()` * `@app.delete()` 以及更少见的: * `@app.options()` * `@app.head()` * `@app.patch()` * `@app.trace()` /// tip 你可以随意使用任何一个操作(HTTP方法)。 **FastAPI** 没有强制要求操作有任何特定的含义。 此处提供的信息仅作为指导,而不是要求。
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 10.5K bytes - Click Count (0) -
docs/es/docs/deployment/fastapicloud.md
``` </div> ## Desplegar { #deploy } Ahora despliega tu app, con un solo comando: <div class="termy"> ```console $ fastapi deploy Deploying to FastAPI Cloud... ✅ Deployment successful! 🐔 Ready the chicken! Your app is ready at https://myapp.fastapicloud.dev ``` </div> ¡Eso es todo! Ahora puedes acceder a tu app en esa URL. ✨ ## Acerca de FastAPI Cloud { #about-fastapi-cloud }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 16:16:35 GMT 2025 - 2.1K bytes - Click Count (0) -
docs/en/docs/deployment/fastapicloud.md
``` </div> ## Deploy { #deploy } Now deploy your app, with **one command**: <div class="termy"> ```console $ fastapi deploy Deploying to FastAPI Cloud... ✅ Deployment successful! 🐔 Ready the chicken! Your app is ready at https://myapp.fastapicloud.dev ``` </div> That's it! Now you can access your app at that URL. ✨ ## About FastAPI Cloud { #about-fastapi-cloud }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 17 19:33:53 GMT 2025 - 2K bytes - Click Count (0) -
docs_src/request_files/tutorial001_an_py39.py
from typing import Annotated from fastapi import FastAPI, File, UploadFile app = FastAPI() @app.post("/files/") async def create_file(file: Annotated[bytes, File()]): return {"file_size": len(file)} @app.post("/uploadfile/") async def create_upload_file(file: UploadFile):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 322 bytes - Click Count (0) -
docs_src/custom_response/tutorial010_py39.py
from fastapi import FastAPI from fastapi.responses import ORJSONResponse app = FastAPI(default_response_class=ORJSONResponse) @app.get("/items/") async def read_items():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 205 bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial005_py39.py
from fastapi import FastAPI app = FastAPI() @app.get("/items/", openapi_extra={"x-aperture-labs-portal": "blue"}) async def read_items():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 180 bytes - Click Count (0) -
docs_src/behind_a_proxy/tutorial003_py39.py
from fastapi import FastAPI, Request app = FastAPI( servers=[ {"url": "https://stag.example.com", "description": "Staging environment"}, {"url": "https://prod.example.com", "description": "Production environment"}, ], root_path="/api/v1", ) @app.get("/app") def read_main(request: Request):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 405 bytes - Click Count (0) -
docs_src/configure_swagger_ui/tutorial001_py39.py
from fastapi import FastAPI app = FastAPI(swagger_ui_parameters={"syntaxHighlight": False}) @app.get("/users/{username}") async def read_user(username: str):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 205 bytes - Click Count (0) -
docs_src/behind_a_proxy/tutorial004_py39.py
from fastapi import FastAPI, Request app = FastAPI( servers=[ {"url": "https://stag.example.com", "description": "Staging environment"}, {"url": "https://prod.example.com", "description": "Production environment"}, ], root_path="/api/v1", root_path_in_servers=False, ) @app.get("/app") def read_main(request: Request):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 437 bytes - Click Count (0)