- Sort Score
- Num 10 results
- Language All
Results 541 - 550 of 1,322 for description (0.06 seconds)
-
docs_src/bigger_applications/app_an_py39/main.py
app.include_router(users.router) app.include_router(items.router) app.include_router( admin.router, prefix="/admin", tags=["admin"], dependencies=[Depends(get_token_header)], responses={418: {"description": "I'm a teapot"}}, ) @app.get("/") async def root():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 552 bytes - Click Count (0) -
docs_src/body/tutorial002_py39.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None app = FastAPI() @app.post("/items/") async def create_item(item: Item): item_dict = item.model_dump() if item.tax is not None: price_with_tax = item.price + item.tax
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 485 bytes - Click Count (0) -
docs_src/body_nested_models/tutorial005_py310.py
from fastapi import FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Image(BaseModel): url: HttpUrl name: str class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() image: Image | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 468 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial008_an_py310.py
from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: Annotated[ str | None, Query( title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, ), ] = None, ): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Oct 24 20:26:06 GMT 2023 - 498 bytes - Click Count (0) -
docs_src/response_model/tutorial001_01_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: list[str] = [] @app.post("/items/") async def create_item(item: Item) -> Item: return item @app.get("/items/") async def read_items() -> list[Item]: return [
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Jan 07 13:45:48 GMT 2023 - 469 bytes - Click Count (0) -
docs_src/bigger_applications/app_py39/main.py
app.include_router(users.router) app.include_router(items.router) app.include_router( admin.router, prefix="/admin", tags=["admin"], dependencies=[Depends(get_token_header)], responses={418: {"description": "I'm a teapot"}}, ) @app.get("/") async def root():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 552 bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial008_py39.py
from fastapi import FastAPI, Query app = FastAPI() @app.get("/items/") async def read_items( q: Union[str, None] = Query( default=None, title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, ), ): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 466 bytes - Click Count (0) -
api/maven-api-settings/pom.xml
<artifactId>maven-api</artifactId> <version>4.1.0-SNAPSHOT</version> </parent> <artifactId>maven-api-settings</artifactId> <name>Maven 4 API :: Settings</name> <description>Maven 4 API - Immutable Settings model.</description> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-api-annotations</artifactId> </dependency> <dependency>
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Jun 29 22:37:39 GMT 2025 - 3.6K bytes - Click Count (0) -
api/maven-api-toolchain/pom.xml
<artifactId>maven-api</artifactId> <version>4.1.0-SNAPSHOT</version> </parent> <artifactId>maven-api-toolchain</artifactId> <name>Maven 4 API :: Toolchain</name> <description>Maven 4 API - Immutable Toolchain model.</description> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-api-annotations</artifactId> </dependency> <dependency>
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Jun 29 22:37:39 GMT 2025 - 3.4K bytes - Click Count (0) -
api/pom.xml
<version>4.1.0-SNAPSHOT</version> </parent> <artifactId>maven-api</artifactId> <packaging>pom</packaging> <name>Maven 4 API</name> <description>A new immutable API for Maven 4 to better manage what plugins and extensions can influence.</description> <modules> <module>maven-api-annotations</module> <module>maven-api-di</module> <module>maven-api-xml</module> <module>maven-api-model</module>
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Jun 29 22:37:39 GMT 2025 - 3.2K bytes - Click Count (0)