- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 228 for ME (0.06 sec)
-
docs_src/bigger_applications/app/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):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Nov 29 17:32:18 UTC 2020 - 407 bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/BasicJavadocLexerTest.groovy
1 * visitor.onEndHtmlElement('p') 1 * visitor.onEnd() 0 * visitor._ } def discardsHtmlComments() { when: lexer.pushText("<p><!-- ignore me --></p>text <!-- -->2") lexer.visit(visitor) then: 1 * visitor.onStartHtmlElement('p') 1 * visitor.onStartHtmlElementComplete('p') 1 * visitor.onEndHtmlElement('p')
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/PublicAPIRulesTest.groovy
import japicmp.model.JApiConstructor import japicmp.model.JApiField import japicmp.model.JApiMethod import japicmp.model.JApiParameter import me.champeau.gradle.japicmp.report.AbstractContextAwareViolationRule import me.champeau.gradle.japicmp.report.Severity import me.champeau.gradle.japicmp.report.ViolationCheckContext import org.gradle.api.Incubating import spock.lang.Specification import spock.lang.TempDir
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Dec 01 20:12:19 UTC 2023 - 16K bytes - Viewed (0) -
istioctl/pkg/metrics/metrics_test.go
if !ok { return prometheus_model.Vector{}, nil, nil } return canned, nil, nil } func (client mockPromAPI) WalReplay(ctx context.Context) (promv1.WalReplayStatus, error) { // TODO implement me panic("implement me") } func (client mockPromAPI) Series(ctx context.Context, matches []string, startTime time.Time, endTime time.Time, opts ...promv1.Option, ) ([]prometheus_model.LabelSet, promv1.Warnings, error) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 16 01:35:47 UTC 2024 - 8K bytes - Viewed (0) -
docs_src/security/tutorial002_py310.py
) async def get_current_user(token: str = Depends(oauth2_scheme)): user = fake_decode_token(token) return user @app.get("/users/me") async def read_users_me(current_user: User = Depends(get_current_user)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 711 bytes - Viewed (0) -
docs_src/security/tutorial002_an_py310.py
) async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]): user = fake_decode_token(token) return user @app.get("/users/me") async def read_users_me(current_user: Annotated[User, Depends(get_current_user)]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 761 bytes - Viewed (0) -
docs_src/security/tutorial002.py
) async def get_current_user(token: str = Depends(oauth2_scheme)): user = fake_decode_token(token) return user @app.get("/users/me") async def read_users_me(current_user: User = Depends(get_current_user)):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 755 bytes - Viewed (0) -
docs_src/security/tutorial002_an.py
) async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]): user = fake_decode_token(token) return user @app.get("/users/me") async def read_users_me(current_user: Annotated[User, Depends(get_current_user)]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 815 bytes - Viewed (0) -
docs_src/security/tutorial007_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 1.1K bytes - Viewed (0) -
fastapi/security/http.py
from fastapi import Depends, FastAPI from fastapi.security import HTTPBasic, HTTPBasicCredentials app = FastAPI() security = HTTPBasic() @app.get("/users/me") def read_current_user(credentials: Annotated[HTTPBasicCredentials, Depends(security)]): return {"username": credentials.username, "password": credentials.password} ``` """ def __init__(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 19 09:47:28 UTC 2024 - 13.2K bytes - Viewed (0)