Search Options

Results per page
Sort
Preferred Languages
Advance

Results 891 - 900 of 3,801 for getD (0.02 sec)

  1. docs_src/dependencies/tutorial001_02_an_py39.py

    ):
        return {"q": q, "skip": skip, "limit": limit}
    
    
    CommonsDep = Annotated[dict, Depends(common_parameters)]
    
    
    @app.get("/items/")
    async def read_items(commons: CommonsDep):
        return commons
    
    
    @app.get("/users/")
    async def read_users(commons: CommonsDep):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 466 bytes
    - Viewed (0)
  2. tests/test_router_prefix_with_template.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    router = APIRouter()
    
    
    @router.get("/users/{id}")
    def read_user(segment: str, id: str):
        return {"segment": segment, "id": id}
    
    
    app.include_router(router, prefix="/{segment}")
    
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/seg/users/foo")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Apr 08 04:37:38 UTC 2020
    - 484 bytes
    - Viewed (0)
  3. docs_src/path_params_numeric_validations/tutorial006_an_py39.py

    from typing import Annotated
    
    from fastapi import FastAPI, Path, Query
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        *,
        item_id: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
        q: str,
        size: Annotated[float, Query(gt=0, lt=10.5)],
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
        if size:
            results.update({"size": size})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Aug 28 23:39:15 UTC 2024
    - 447 bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

                if (!Files.isRegularFile(userToolchainsFile)) {
                    throw new FileNotFoundException(
                            "The specified user toolchains file does not exist: " + userToolchainsFile);
                }
            } else {
                String userToolchainsFileStr =
                        context.invokerRequest.userProperties().get(Constants.MAVEN_USER_TOOLCHAINS);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/backup/ApiAdminBackupAction.java

        // GET /api/admin/backup/files
        @Execute
        public JsonResponse<ApiResult> files() {
            final List<Map<String, String>> list = getBackupItems();
            return asJson(new ApiBackupFilesResponse().files(list).total(list.size()).status(ApiResult.Status.OK).result());
        }
    
        // GET /api/admin/backup/file/{id}
        @Execute
        public StreamResponse get$file(final String id) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

            for (int i = 1; i < keys.size(); i++) {
              if (keys.get(i) < keys.get(minIndex)) {
                minIndex = i;
              }
            }
            Optional<BinaryNode> leftChild = createTreap(keys.subList(0, minIndex));
            Optional<BinaryNode> rightChild = createTreap(keys.subList(minIndex + 1, keys.size()));
            return Optional.of(new BinaryNode(keys.get(minIndex), leftChild, rightChild));
          }
        };
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 26 19:18:53 UTC 2019
    - 4.9K bytes
    - Viewed (0)
  7. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/merge/MavenToolchainMergerTest.java

                assertEquals(2, jdks.getToolchains().size());
                Xpp3Dom config0 = (Xpp3Dom) jdks.getToolchains().get(0).getConfiguration();
                assertEquals("lib/tools.jar", config0.getChild("toolsJar").getValue());
                assertEquals(2, config0.getChildCount());
                Xpp3Dom config1 = (Xpp3Dom) jdks.getToolchains().get(1).getConfiguration();
                assertEquals(2, config1.getChildCount());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. cmd/bucket-quota.go

    	"github.com/minio/minio/internal/cachevalue"
    	"github.com/minio/minio/internal/logger"
    )
    
    // BucketQuotaSys - map of bucket and quota configuration.
    type BucketQuotaSys struct{}
    
    // Get - Get quota configuration.
    func (sys *BucketQuotaSys) Get(ctx context.Context, bucketName string) (*madmin.BucketQuota, error) {
    	cfg, _, err := globalBucketMetadataSys.GetQuotaConfig(ctx, bucketName)
    	return cfg, err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

                  }));
        }
        threadPool.shutdown();
        assertTrue(threadPool.awaitTermination(300, SECONDS));
        long sum = 0;
        for (Future<Long> f : futures) {
          sum += f.get();
        }
        assertEquals(sum, map.get(key));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. docs_src/behind_a_proxy/tutorial002.py

    from fastapi import FastAPI, Request
    
    app = FastAPI(root_path="/api/v1")
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Jun 11 21:53:19 UTC 2020
    - 208 bytes
    - Viewed (0)
Back to top