Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 661 - 670 of 3,502 for getC (0.03 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/bigger_applications/app_an_py310/routers/users.py

    from fastapi import APIRouter
    
    router = APIRouter()
    
    
    @router.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "Rick"}, {"username": "Morty"}]
    
    
    @router.get("/users/me", tags=["users"])
    async def read_user_me():
        return {"username": "fakecurrentuser"}
    
    
    @router.get("/users/{username}", tags=["users"])
    async def read_user(username: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 407 bytes
    - Click Count (0)
  2. tests/test_tutorial/test_additional_responses/test_tutorial004.py

    
    def test_path_operation(client: TestClient):
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    @workdir_lock
    def test_path_operation_img(client: TestClient):
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  3. tests/test_enforce_once_required_parameter.py

            return None
        return f"{client_id}_tag"
    
    
    @app.get("/foo")
    def foo_handler(
        client_key: str = Depends(_get_client_key),
        client_tag: str | None = Depends(_get_client_tag),
    ):
        return {"client_id": client_key, "client_tag": client_tag}
    
    
    client = TestClient(app)
    
    
    def test_get_invalid():
        response = client.get("/foo")
        assert response.status_code == 422
    
    
    def test_get_valid():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  4. impl/maven-core/src/main/java/org/apache/maven/classrealm/ClassRealmManager.java

     * deleted without prior notice.
     *
     */
    public interface ClassRealmManager {
    
        /**
         * Gets the class realm hosting the Maven core.
         *
         * @return The class realm hosting the Maven core, never {@code null}.
         */
        ClassRealm getCoreRealm();
    
        /**
         * Gets the class realm exposing the Maven API. This is basically a restricted view on the Maven core realm.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4K bytes
    - Click Count (0)
  5. cmd/healthcheck-handler.go

    	if objLayer == nil {
    		return
    	}
    
    	ctx, cancel := context.WithTimeout(ctx, globalAPIConfig.getClusterDeadline())
    	defer cancel()
    
    	opts := HealthOptions{
    		Maintenance:    r.Form.Get("maintenance") == "true",
    		DeploymentType: r.Form.Get("deployment-type"),
    	}
    	result := objLayer.Health(ctx, opts)
    	w.Header().Set(xhttp.MinIOWriteQuorum, strconv.Itoa(result.WriteQuorum))
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 26 07:44:34 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  6. docs_src/path_operation_configuration/tutorial006_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/", tags=["items"])
    async def read_items():
        return [{"name": "Foo", "price": 42}]
    
    
    @app.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "johndoe"}]
    
    
    @app.get("/elements/", tags=["items"], deprecated=True)
    async def read_elements():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 365 bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/service/KuromojiService.java

        }
    
        /**
         * Get a Kuromoji item.
         *
         * @param dictId The dictionary ID.
         * @param id The ID of the Kuromoji item.
         * @return An optional entity of the Kuromoji item.
         */
        public OptionalEntity<KuromojiItem> getKuromojiItem(final String dictId, final long id) {
            return getKuromojiFile(dictId).map(file -> file.get(id).get());
        }
    
        /**
         * Store a Kuromoji item.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/collect/HashBasedTableTest.java

        assertEquals((Character) 'a', table1.get("foo", 1));
    
        Table<String, Integer, Character> table2 = HashBasedTable.create(100, 0);
        table2.put("foo", 1, 'a');
        assertEquals((Character) 'a', table2.get("foo", 1));
    
        Table<String, Integer, Character> table3 = HashBasedTable.create(0, 20);
        table3.put("foo", 1, 'a');
        assertEquals((Character) 'a', table3.get("foo", 1));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  9. tests/test_multi_query_errors.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI()
    
    
    @app.get("/items/")
    def read_items(q: list[int] = Query(default=None)):
        return {"q": q}
    
    
    client = TestClient(app)
    
    
    def test_multi_query():
        response = client.get("/items/?q=5&q=6")
        assert response.status_code == 200, response.text
        assert response.json() == {"q": [5, 6]}
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImpl.java

            if (logger.isDebugEnabled()) {
                logger.debug("Adding document: url={}", dataMap.get(fessConfig.getIndexFieldUrl()));
            }
    
            //   required check
            final Object urlObj = dataMap.get(fessConfig.getIndexFieldUrl());
            if (urlObj == null) {
                final Object configId = dataMap.get(fessConfig.getIndexFieldConfigId());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.5K bytes
    - Click Count (0)
Back to Top