Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 461 - 470 of 1,377 for app (0.01 seconds)

  1. tests/test_request_params/test_body/test_required_str.py

    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/required-str", operation_id="required_str")
    async def read_required_str(p: Annotated[str, Body(embed=True)]):
        return {"p": p}
    
    
    class BodyModelRequiredStr(BaseModel):
        p: str
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 11K bytes
    - Click Count (0)
  2. tests/test_request_params/test_file/test_optional_list.py

    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/optional-list-bytes")
    async def read_optional_list_bytes(p: Annotated[Optional[list[bytes]], File()] = None):
        return {"file_size": [len(file) for file in p] if p else None}
    
    
    @app.post("/optional-list-uploadfile")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  3. tests/test_filter_pydantic_sub_model_pv2.py

        @app.get("/model/{name}", response_model=ModelA)
        async def get_model_a(name: str, model_c=Depends(get_model_c)):
            return {
                "name": name,
                "description": "model-a-desc",
                "foo": model_c,
                "tags": {"key1": "value1", "key2": "value2"},
            }
    
        client = TestClient(app)
        return client
    
    
    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)
  4. fastapi/exceptions.py

        ## Example
    
        ```python
        from fastapi import FastAPI, HTTPException
    
        app = FastAPI()
    
        items = {"foo": "The Foo Wrestlers"}
    
    
        @app.get("/items/{item_id}")
        async def read_item(item_id: str):
            if item_id not in items:
                raise HTTPException(status_code=404, detail="Item not found")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  5. helm-releases/minio-5.0.14.tgz

    "RollingUpdate" }} rollingUpdate: maxSurge: {{ .Values.deploymentUpdate.maxSurge }} maxUnavailable: {{ .Values.deploymentUpdate.maxUnavailable }} {{- end }} replicas: 1 selector: matchLabels: app: {{ template "minio.name" . }} release: {{ .Release.Name }} template: metadata: name: {{ template "minio.fullname" . }} labels: app: {{ template "minio.name" . }} release: {{ .Release.Name }} {{- if .Values.podLabels }} {{- toYaml .Values.podLabels | nindent 8 }} {{- end }} annotations: {{- if not .Values.ignoreChartChecksums...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sat Sep 30 20:46:10 GMT 2023
    - 20.6K bytes
    - Click Count (0)
  6. helm-releases/minio-5.0.15.tgz

    "RollingUpdate" }} rollingUpdate: maxSurge: {{ .Values.deploymentUpdate.maxSurge }} maxUnavailable: {{ .Values.deploymentUpdate.maxUnavailable }} {{- end }} replicas: 1 selector: matchLabels: app: {{ template "minio.name" . }} release: {{ .Release.Name }} template: metadata: name: {{ template "minio.fullname" . }} labels: app: {{ template "minio.name" . }} release: {{ .Release.Name }} {{- if .Values.podLabels }} {{- toYaml .Values.podLabels | nindent 8 }} {{- end }} annotations: {{- if not .Values.ignoreChartChecksums...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Jan 12 18:18:57 GMT 2024
    - 20.8K bytes
    - Click Count (0)
  7. helm-releases/minio-5.0.3.tgz

    PodDisruptionBudget metadata: name: minio namespace: {{ .Release.Namespace | quote }} labels: app: {{ template "minio.name" . }} spec: maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} selector: matchLabels: app: {{ template "minio.name" . }} {{- end }} minio/templates/post-job.yaml apiVersion: batch/v1 kind: Job metadata: name: {{ template "minio.fullname" . }}-post-job namespace: {{ .Release.Namespace | quote }} labels: app: {{ template "minio.name" . }}-post-job chart: {{ template "minio.chart" ....
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Dec 19 08:53:02 GMT 2022
    - 20.3K bytes
    - Click Count (0)
  8. helm-releases/minio-5.0.4.tgz

    PodDisruptionBudget metadata: name: minio namespace: {{ .Release.Namespace | quote }} labels: app: {{ template "minio.name" . }} spec: maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} selector: matchLabels: app: {{ template "minio.name" . }} {{- end }} minio/templates/post-job.yaml apiVersion: batch/v1 kind: Job metadata: name: {{ template "minio.fullname" . }}-post-job namespace: {{ .Release.Namespace | quote }} labels: app: {{ template "minio.name" . }}-post-job chart: {{ template "minio.chart" ....
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Dec 23 20:29:40 GMT 2022
    - 20.3K bytes
    - Click Count (0)
  9. helm-releases/minio-5.0.5.tgz

    "RollingUpdate" }} rollingUpdate: maxSurge: {{ .Values.DeploymentUpdate.maxSurge }} maxUnavailable: {{ .Values.DeploymentUpdate.maxUnavailable }} {{- end}} replicas: 1 selector: matchLabels: app: {{ template "minio.name" . }} release: {{ .Release.Name }} template: metadata: name: {{ template "minio.fullname" . }} labels: app: {{ template "minio.name" . }} release: {{ .Release.Name }} {{- if .Values.podLabels }} {{ toYaml .Values.podLabels | indent 8 }} {{- end }} annotations: {{- if not .Values.ignoreChartChecksums...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Feb 03 20:54:02 GMT 2023
    - 20.3K bytes
    - Click Count (0)
  10. docs_src/path_operation_advanced_configuration/tutorial004_py39.py

    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
    
    
    @app.post("/items/", response_model=Item, summary="Create an item")
    async def create_item(item: Item):
        """
        Create an item with all the information:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 712 bytes
    - Click Count (0)
Back to Top