- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for me (0.24 sec)
-
docs/em/docs/tutorial/security/simple-oauth2.md
🔐: `secret` <img src="/img/tutorial/security/image04.png"> ⏮️ 🔗 ⚙️, 👆 🔜 👀 ⚫️ 💖: <img src="/img/tutorial/security/image05.png"> ### 🤚 👆 👍 👩💻 💽 🔜 ⚙️ 🛠️ `GET` ⏮️ ➡ `/users/me`. 👆 🔜 🤚 👆 👩💻 📊, 💖: ```JSON { "username": "johndoe", "email": "******@****.***", "full_name": "John Doe", "disabled": false, "hashed_password": "fakehashedsecret" }
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.9K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
}, ] } ) def test_users_me_token_jessica(client: TestClient): response = client.get("/users/me?token=jessica") assert response.status_code == 200 assert response.json() == {"username": "fakecurrentuser"} def test_users_me_with_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 422 assert response.json() == IsDict(
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 24.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params.md
Algo como `/users/me` por exemplo, digamos que essa rota seja utilizada para pegar dados sobre o usuário atual. E então você pode ter também uma rota `/users/{user_id}` para pegar dados sobre um usuário específico associado a um ID de usuário. Porque as operações de rota são avaliadas em ordem, você precisa ter certeza que a rota para `/users/me` está sendo declarado antes da rota `/users/{user_id}`:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.7K bytes - Viewed (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
Password: `secret` !!! check Notice that nowhere in the code is the plaintext password "`secret`", we only have the hashed version. <img src="/img/tutorial/security/image08.png"> Call the endpoint `/users/me/`, you will get the response as: ```JSON { "username": "johndoe", "email": "******@****.***", "full_name": "John Doe", "disabled": false } ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 13K bytes - Viewed (0) -
fastapi/param_functions.py
from typing import Annotated from fastapi import Depends, FastAPI from .db import User from .security import get_current_active_user app = FastAPI() @app.get("/users/me/items/") async def read_own_items( current_user: Annotated[User, Security(get_current_active_user, scopes=["items"])] ): return [{"item_id": "Foo", "owner": current_user.username}] ```
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 62.5K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
After authenticating in the system, you will see it like: <img src="/img/tutorial/security/image05.png"> ### Get your own user data Now use the operation `GET` with the path `/users/me`. You will get your user's data, like: ```JSON { "username": "johndoe", "email": "******@****.***", "full_name": "John Doe", "disabled": false, "hashed_password": "fakehashedsecret"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0) -
docs/fr/docs/fastapi-people.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.9K bytes - Viewed (0) -
docs/pt/docs/fastapi-people.md
Aqui também estou destacando contribuições de patrocinadores.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.5K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* ✏ Fix typo in `body-nested-models.md`. PR [#3462](https://github.com/tiangolo/fastapi/pull/3462) by [@jaystone776](https://github.com/jaystone776). * ✏ Fix typo "might me" -> "might be" in `docs/en/docs/tutorial/schema-extra-example.md`. PR [#3362](https://github.com/tiangolo/fastapi/pull/3362) by [@dbrakman](https://github.com/dbrakman).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri May 03 23:25:42 GMT 2024 - 388.1K bytes - Viewed (1) -
docs/en/docs/tutorial/schema-extra-example.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.8K bytes - Viewed (0)