Search Options

Results per page
Sort
Preferred Languages
Advance

Results 611 - 620 of 1,381 for put (0.39 sec)

  1. docs_src/body_multiple_params/tutorial004_py310.py

    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item,
        user: User,
        importance: int = Body(gt=0),
        q: str | None = None,
    ):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Mar 10 18:49:18 UTC 2023
    - 603 bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ExtractData.java

            metadata.put(key, values);
        }
    
        /**
         * Puts a single value for a given key in the metadata.
         *
         * @param key the metadata key
         * @param value the value to associate with the key
         */
        public void putValue(final String key, final String value) {
            metadata.put(key, new String[] { value });
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataGenerator.java

             */
            for (Metadata metadata : request.getMetadata()) {
                if (metadata instanceof RemoteSnapshotMetadata snapshotMetadata) {
                    snapshots.put(snapshotMetadata.getKey(), snapshotMetadata);
                }
            }
        }
    
        @Override
        public Collection<? extends Metadata> prepare(Collection<? extends Artifact> artifacts) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 08:42:00 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                Map<String, Object> options = new HashMap<>();
                options.put(ModelProcessor.IS_STRICT, strict);
                options.put(ModelProcessor.INPUT_SOURCE, source);
                options.put(ModelProcessor.SOURCE, modelSource);
    
                try {
                    model = modelProcessor.read(modelSource.getInputStream(), options);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Mar 30 23:08:08 UTC 2025
    - 55.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/entity/DataStoreParams.java

         * Stores a parameter value with the specified key.
         *
         * @param key the parameter key, must not be null
         * @param value the parameter value, may be null
         */
        public void put(final String key, final Object value) {
            params.put(key, value);
        }
    
        /**
         * Retrieves a parameter value by key.
         *
         * @param key the parameter key to look up
         * @return the parameter value if found, null otherwise
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPackagingRegistry.java

                lifecycle
                        .getLifecyclePhases()
                        .forEach((phase, lifecyclePhase) -> parseLifecyclePhaseDefinitions(plugins, phase, lifecyclePhase));
                lfs.put(id, PluginContainer.newBuilder().plugins(plugins.values()).build());
            });
            return lfs;
        }
    
        static void parseLifecyclePhaseDefinitions(Map<String, Plugin> plugins, String phase, LifecyclePhase goals) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. docs/en/docs/reference/parameters.md

    # Request Parameters
    
    Here's the reference information for the request parameters.
    
    These are the special functions that you can put in *path operation function* parameters or dependency functions with `Annotated` to get data from the request.
    
    It includes:
    
    * `Query()`
    * `Path()`
    * `Body()`
    * `Cookie()`
    * `Header()`
    * `Form()`
    * `File()`
    
    You can import them all directly from `fastapi`:
    
    ```python
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 603 bytes
    - Viewed (0)
  8. docs_src/schema_extra_example/tutorial004_an_py39.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Annotated[
            Item,
            Body(
                examples=[
                    {
                        "name": "Foo",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Jul 01 16:43:29 UTC 2023
    - 936 bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/providers/AbstractLifecycleProvider.java

                }
    
                defaultBindings = new LinkedHashMap<>(len / 2);
    
                for (int i = 0; i < len; i += 2) {
                    defaultBindings.put(pluginBindings[i], new LifecyclePhase(pluginBindings[i + 1]));
                }
            }
    
            this.lifecycle = new Lifecycle(
                    id,
                    Collections.unmodifiableList(Arrays.asList(phases)),
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. docs_src/additional_status_codes/tutorial001_an_py39.py

    from fastapi import Body, FastAPI, status
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
        if item_id in items:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 705 bytes
    - Viewed (0)
Back to top