Search Options

Results per page
Sort
Preferred Languages
Advance

Results 591 - 600 of 1,385 for putA (0.02 sec)

  1. docs_src/body/tutorial003_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Jan 09 14:28:58 UTC 2024
    - 324 bytes
    - Viewed (0)
  2. docs_src/bigger_applications/app_an/routers/items.py

    async def read_item(item_id: str):
        if item_id not in fake_items_db:
            raise HTTPException(status_code=404, detail="Item not found")
        return {"name": fake_items_db[item_id]["name"], "item_id": item_id}
    
    
    @router.put(
        "/{item_id}",
        tags=["custom"],
        responses={403: {"description": "Operation forbidden"}},
    )
    async def update_item(item_id: str):
        if item_id != "plumbus":
            raise HTTPException(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 1011 bytes
    - Viewed (0)
  3. docs_src/body_updates/tutorial001.py

        "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []},
    }
    
    
    @app.get("/items/{item_id}", response_model=Item)
    async def read_item(item_id: str):
        return items[item_id]
    
    
    @app.put("/items/{item_id}", response_model=Item)
    async def update_item(item_id: str, item: Item):
        update_item_encoded = jsonable_encoder(item)
        items[item_id] = update_item_encoded
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 906 bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/user/ApiAdminUserAction.java

                return null;
            })).status(ApiResult.Status.OK).result());
        }
    
        // PUT /api/admin/user/setting
        @Execute
        public JsonResponse<ApiResult> put$setting(final CreateBody body) {
            validateApi(body, messages -> {});
            body.crudMode = CrudMode.CREATE;
            final User entity = getUser(body).orElseGet(() -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherMapWithDifferentEntries() {
        Map<K, V> other = newHashMap(getSampleEntries(getNumEntries() - 1));
        other.put(k3(), v3());
        assertFalse(
            "A Map should not equal another Map containing different entries.", getMap().equals(other));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java

      @CheckForNull
      public E pollLast(long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().pollLast(timeout, unit);
      }
    
      @Override
      public void put(E e) throws InterruptedException {
        delegate().put(e);
      }
    
      @Override
      public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().offer(e, timeout, unit);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

        if (isSelfLoop) {
          checkPositive(++selfLoopCount);
        }
        N previousNode = inEdgeMap.put(edge, node);
        checkState(previousNode == null);
      }
    
      @Override
      public void addOutEdge(E edge, N node) {
        checkNotNull(edge);
        checkNotNull(node);
    
        N previousNode = outEdgeMap.put(edge, node);
        checkState(previousNode == null);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Enums.java

          Class<T> enumClass) {
        Map<String, WeakReference<? extends Enum<?>>> result = new HashMap<>();
        for (T enumInstance : EnumSet.allOf(enumClass)) {
          result.put(enumInstance.name(), new WeakReference<Enum<?>>(enumInstance));
        }
        enumConstantCache.put(enumClass, result);
        return result;
      }
    
      @GwtIncompatible // java.lang.ref.WeakReference
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java

                if (metadata.getClass().getName().endsWith(".internal.VersionsMetadata")) {
                    relatedMetadata.put(versionKey, (MergeableMetadata) metadata);
                }
                if (snapshotKey != null && metadata.getClass().getName().endsWith(".internal.RemoteSnapshotMetadata")) {
                    relatedMetadata.put(snapshotKey, (MergeableMetadata) metadata);
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/service/impl/DataServiceImpl.java

                if (arMap.containsKey(accessResult.getUrl())) {
                    throw new CrawlerSystemException(accessResult.getUrl() + " already exists.");
                }
                arMap.put(accessResult.getUrl(), accessResult);
            }
    
        }
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.service.DataService#getCount(java.lang.String)
         */
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top