Search Options

Results per page
Sort
Preferred Languages
Advance

Results 671 - 680 of 1,381 for put (0.51 sec)

  1. docs_src/additional_status_codes/tutorial001_an_py310.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[str | None, Body()] = None,
        size: Annotated[int | None, Body()] = None,
    ):
        if item_id in items:
            item = items[item_id]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 686 bytes
    - Viewed (0)
  2. docs_src/body_multiple_params/tutorial001_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: Annotated[int, Path(title="The ID of the item to get", ge=0, le=1000)],
        q: Union[str, None] = None,
        item: Union[Item, None] = None,
    ):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 610 bytes
    - Viewed (0)
  3. docs/de/docs/index.md

        * Swagger UI.
        * ReDoc.
    
    ---
    
    Um auf das vorherige Codebeispiel zurückzukommen, **FastAPI** wird:
    
    * Validieren, dass es eine `item_id` im Pfad für `GET`- und `PUT`-Requests gibt.
    * Validieren, ob die `item_id` vom Typ `int` für `GET`- und `PUT`-Requests ist.
        * Falls nicht, sieht der Client einen hilfreichen, klaren Fehler.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 09:39:53 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/SinceAnnotationRuleCurrentGradleVersionSetup.java

        }
    
        @Override
        @SuppressWarnings("unchecked")
        public void execute(ViolationCheckContext context) {
            Map<String, Object> userData = (Map<String, Object>) context.getUserData();
            userData.put("currentVersion", currentVersion);
        }
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jun 06 17:52:09 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

        }
    
        private void writeLastUpdated(File touchfile, String key, String error) {
            HashMap<String, String> update = new HashMap<>();
            update.put(key, Long.toString(System.currentTimeMillis()));
            update.put(key + ERROR_KEY_SUFFIX, error); // error==null => remove mapping
            trackingFileManager.update(touchfile, update);
        }
    
        Date readLastUpdated(File touchfile, String key) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 16 13:41:14 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. tests/test_operations_signatures.py

    import inspect
    
    from fastapi import APIRouter, FastAPI
    
    method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"]
    
    
    def test_signatures_consistency():
        base_sig = inspect.signature(APIRouter.get)
        for method_name in method_names:
            router_method = getattr(APIRouter, method_name)
            app_method = getattr(FastAPI, method_name)
            router_sig = inspect.signature(router_method)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon May 27 12:08:13 UTC 2019
    - 934 bytes
    - Viewed (0)
  7. docs/uk/docs/tutorial/first-steps.md

    ///
    
    При створенні API, "шлях" є основним способом розділення "завдань" і "ресурсів".
    #### Operation
    
    "Операція" (operation) тут означає один з "методів" HTTP.
    
    Один з:
    
    * `POST`
    * `GET`
    * `PUT`
    * `DELETE`
    
    ...та більш екзотичних:
    
    * `OPTIONS`
    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    У HTTP-протоколі можна спілкуватися з кожним шляхом, використовуючи один (або кілька) з цих "методів".
    
    ---
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

                  Object value = new Object();
                  result.put(key, value);
                }
                result.put(extraKey, extraValue);
                result.put(extraValue, null);
                return result;
              }
            };
        LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader);
        cache.asMap().put(extraKey, extraKey);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessClient.java

                        registration.setState(WitnessRegistrationState.REGISTERED);
                        registration.setContextHandle(response.getContextHandle());
                        registrations.put(registration.getRegistrationId(), registration);
                        listeners.put(registration.getRegistrationId(), listener);
    
                        // Start async notification monitoring for this registration
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                    throw new VersionResolutionException(result);
                }
            }
    
            if (cacheKey != null && metadata != null && isSafelyCacheable(session, artifact)) {
                cache.put(session, cacheKey, new Record(result.getVersion(), result.getRepository()));
            }
    
            return result;
        }
    
        private boolean resolve(VersionResult result, Map<String, VersionInfo> infos, String key) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 08:42:00 UTC 2025
    - 20.2K bytes
    - Viewed (0)
Back to top