Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 2,339 for Tresults (0.17 sec)

  1. docs_src/query_params_str_validations/tutorial008.py

            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})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 466 bytes
    - Viewed (0)
  2. docs_src/query_params_str_validations/tutorial002.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Union[str, None] = Query(default=None, max_length=50)):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 308 bytes
    - Viewed (0)
  3. docs_src/query_params_str_validations/tutorial003_an_py310.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[str | None, Query(min_length=3, max_length=50)] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 330 bytes
    - Viewed (0)
  4. docs_src/query_params_str_validations/tutorial009_an_py310.py

    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[str | None, Query(alias="item-query")] = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 314 bytes
    - Viewed (0)
  5. testing/performance/src/performanceTest/groovy/org/gradle/performance/experiment/maven/JavaTestGradleVsMavenPerformanceTest.groovy

            if (mavenTask == "package") {
                runner.mvnArgs << "-Dmaven.test.skip=true"
            }
            runner.warmUpRuns = 2
            runner.runs = 5
    
            when:
            def results = runner.run()
    
            then:
            results.assertFasterThanMaven()
    
            where:
            gradleTask | mavenTask
            'assemble' | 'package'
            'test'     | 'test'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. pkg/kubelet/eviction/helpers.go

    		}
    		softThresholds[i].GracePeriod = period
    	}
    	results = append(results, softThresholds...)
    	for i := range results {
    		if minReclaim, ok := minReclaims[results[i].Signal]; ok {
    			results[i].MinReclaim = &minReclaim
    		}
    	}
    	for _, key := range allocatableConfig {
    		if key == kubetypes.NodeAllocatableEnforcementKey {
    			results = addAllocatableThresholds(results)
    			break
    		}
    	}
    	return results, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  7. docs_src/path_params_numeric_validations/tutorial002_an_py39.py

    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        q: str, item_id: Annotated[int, Path(title="The ID of the item to get")]
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 311 bytes
    - Viewed (0)
  8. docs_src/path_params_numeric_validations/tutorial003_an_py39.py

    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        item_id: Annotated[int, Path(title="The ID of the item to get")], q: str
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 311 bytes
    - Viewed (0)
  9. docs_src/query_params_str_validations/tutorial004_an_py310.py

    @app.get("/items/")
    async def read_items(
        q: Annotated[
            str | None, Query(min_length=3, max_length=50, pattern="^fixedquery$")
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 368 bytes
    - Viewed (0)
  10. docs_src/query_params_str_validations/tutorial007.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Union[str, None] = Query(default=None, title="Query string", min_length=3),
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 336 bytes
    - Viewed (0)
Back to top