- Sort Score
- Num 10 results
- Language All
Results 301 - 310 of 1,349 for descriptions (0.13 seconds)
-
docs_src/bigger_applications/app_py39/routers/items.py
from ..dependencies import get_token_header router = APIRouter( prefix="/items", tags=["items"], dependencies=[Depends(get_token_header)], responses={404: {"description": "Not found"}}, ) fake_items_db = {"plumbus": {"name": "Plumbus"}, "gun": {"name": "Portal Gun"}} @router.get("/") async def read_items(): return fake_items_db
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1011 bytes - Click Count (0) -
docs_src/request_files/tutorial003_py39.py
app = FastAPI() @app.post("/files/") async def create_files( files: list[bytes] = File(description="Multiple files as bytes"), ): return {"file_sizes": [len(file) for file in files]} @app.post("/uploadfiles/") async def create_upload_files( files: list[UploadFile] = File(description="Multiple files as UploadFile"), ): return {"filenames": [file.filename for file in files]} @app.get("/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 888 bytes - Click Count (0) -
tests/test_tutorial/test_query_params/test_tutorial003.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.9K bytes - Click Count (0) -
docs_src/dependencies/tutorial008b_py39.py
from fastapi import Depends, FastAPI, HTTPException app = FastAPI() data = { "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"}, "portal-gun": {"description": "Gun to create portals", "owner": "Rick"}, } class OwnerError(Exception): pass def get_username(): try: yield "Rick" except OwnerError as e: raise HTTPException(status_code=400, detail=f"Owner error: {e}")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 735 bytes - Click Count (0) -
docs/ru/docs/how-to/separate-openapi-schemas.md
{* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *} …то поле `description` **не будет обязательным**, потому что у него значение по умолчанию `None`. ### Входная модель в документации { #input-model-in-docs } В документации это видно: у поля `description` нет **красной звёздочки** — оно не отмечено как обязательное: <div class="screenshot">Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 11:37:11 GMT 2025 - 6.9K bytes - Click Count (0) -
cmd/object-lambda-handlers.go
} code := resp.Header.Get(xhttp.AmzFwdErrorCode) if strings.TrimSpace(code) == "" { apiErr := errorCodes.ToAPIErr(ErrInvalidRequest) apiErr.Description = desc return &apiErr } return &APIError{ HTTPStatusCode: statusCode, Description: desc, Code: code, } } // GetObjectLambdaHandler - GET Object with transformed data via lambda functions // ----------
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Jul 18 21:56:31 GMT 2025 - 6.5K bytes - Click Count (0) -
fastapi/routing.py
self.dependencies = list(dependencies or []) self.description = description or inspect.cleandoc(self.endpoint.__doc__ or "") # if a "form feed" character (page break) is found in the description text, # truncate description text to the content preceding the first "form feed" self.description = self.description.split("\f")[0].strip() response_fields = {}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 174.6K bytes - Click Count (0) -
tests/test_tutorial/test_generate_clients/test_tutorial001.py
"summary": "Get Items", "operationId": "get_items_items__get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 5.2K bytes - Click Count (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial005.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 8.2K bytes - Click Count (0) -
tests/test_filter_pydantic_sub_model_pv2.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 6.6K bytes - Click Count (0)