- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 2,224 for get3 (0.03 sec)
-
tests/test_tutorial/test_security/test_tutorial005_an_py310.py
def test_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" @needs_py310 def test_token(client: TestClient): access_token = get_access_token(scope="me", client=client) response = client.get(
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
tests/test_response_model_data_filter_no_inheritance.py
async def create_user(user: UserCreate): return user @app.get("/pets/{pet_id}", response_model=PetOut) async def read_pet(pet_id: int): user = UserDB( email="******@****.***", hashed_password="secrethashed", ) pet = PetDB(name="Nibbler", owner=user) return pet @app.get("/pets/", response_model=List[PetOut]) async def read_pets(): user = UserDB(
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 1.7K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003_an_py39.py
@needs_py39 def test_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" @needs_py39 def test_token(client: TestClient): response = client.get("/users/me", headers={"Authorization": "Bearer johndoe"})
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 8.4K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/KotlinInternalFilteringTest.kt
val String.barExt: String get() = "bar" var Int.bazarExt: String get() = "bar" set(value) = Unit """ private val existingSource = """ class ExistingClass { class ExistingNestedClass(foo: String) } val valTurnedIntoVar: String get() = "" typealias ExistingTypeAlias = String
Registered: Wed Oct 30 11:36:09 UTC 2024 - Last Modified: Thu Jun 27 13:51:10 UTC 2024 - 6.4K bytes - Viewed (0) -
dbflute_fess/dfprop/littleAdjustmentMap.dfprop
# ; REMINDER_QUESTION = CachedMemberSecurity.get(this, "$$columnName$$", $$primaryKey$$) # } # } #} # - - - - - - - - - -/ # /- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # o relationalNullObjectMap: (NotRequired - Default map:{}) # You can get a null object when the relation is null.
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Sat Jul 25 06:04:16 UTC 2015 - 8.8K bytes - Viewed (0) -
cmd/object-api-options.go
opts.ServerSideEncryption = encrypt.NewSSE() } return } // get ObjectOptions for GET calls from encryption headers func getOpts(ctx context.Context, r *http.Request, bucket, object string) (ObjectOptions, error) { var opts ObjectOptions var partNumber int var err error if pn := r.Form.Get(xhttp.PartNumber); pn != "" { partNumber, err = strconv.Atoi(pn) if err != nil { return opts, err
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Wed Aug 21 21:13:59 UTC 2024 - 14.4K bytes - Viewed (0) -
docs_src/sql_databases/tutorial001_an.py
return hero @app.get("/heroes/") def read_heroes( session: SessionDep, offset: int = 0, limit: Annotated[int, Query(le=100)] = 100, ) -> List[Hero]: heroes = session.exec(select(Hero).offset(offset).limit(limit)).all() return heroes @app.get("/heroes/{hero_id}") def read_hero(hero_id: int, session: SessionDep) -> Hero: hero = session.get(Hero, hero_id) if not hero:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 1.8K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleUserManualPlugin.java
}); // TODO: This breaks the provider task.setSourceDir(extension.getUserManual().getStagedDocumentation().get().getAsFile()); // TODO: This breaks the provider task.setOutputDir(extension.getUserManual().getStagingRoot().dir("render-multi").get().getAsFile()); Map<String, Object> attributes = new HashMap<>(); attributes.put("icons", "font");
Registered: Wed Oct 30 11:36:09 UTC 2024 - Last Modified: Fri Mar 01 05:46:51 UTC 2024 - 17.7K bytes - Viewed (0) -
tests/test_invalid_path_param.py
class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: List[Item]): pass # pragma: no cover def test_invalid_tuple(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: Tuple[Item, Item]):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Mon Jun 03 17:59:40 UTC 2019 - 1.7K bytes - Viewed (0) -
cmd/kms-handlers.go
return } allKeys, _, err := GlobalKMS.ListKeys(ctx, &kms.ListRequest{ Prefix: r.Form.Get("pattern"), }) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } // Get the cred and owner for checking authz below. cred, owner, s3Err := validateAdminSignature(ctx, r, "") if s3Err != ErrNone {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 10.1K bytes - Viewed (0)