- Sort Score
- Result 10 results
- Languages All
Results 421 - 430 of 1,928 for post (0.04 sec)
-
docs/en/docs/tutorial/first-steps.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 26 11:48:16 UTC 2024 - 11.8K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py310.py
current_user: Annotated[User, Security(get_current_user, scopes=["me"])], ): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login_for_access_token( form_data: Annotated[OAuth2PasswordRequestForm, Depends()], ) -> Token: user = authenticate_user(fake_users_db, form_data.username, form_data.password) if not user:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.2K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py39.py
current_user: Annotated[User, Security(get_current_user, scopes=["me"])], ): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login_for_access_token( form_data: Annotated[OAuth2PasswordRequestForm, Depends()], ) -> Token: user = authenticate_user(fake_users_db, form_data.username, form_data.password) if not user:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.3K bytes - Viewed (0) -
docs/zh/docs/advanced/openapi-callbacks.md
## 使用回调的应用 示例如下。 假设要开发一个创建发票的应用。 发票包括 `id`、`title`(可选)、`customer`、`total` 等属性。 API 的用户 (外部开发者)要在您的 API 内使用 POST 请求创建一条发票记录。 (假设)您的 API 将: * 把发票发送至外部开发者的消费者 * 归集现金 * 把通知发送至 API 的用户(外部开发者) * 通过(从您的 API)发送 POST 请求至外部 API (即**回调**)来完成 ## 常规 **FastAPI** 应用 添加回调前,首先看下常规 API 应用是什么样子。 常规 API 应用包含接收 `Invoice` 请求体的*路径操作*,还有包含回调 URL 的查询参数 `callback_url`。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.6K bytes - Viewed (0) -
licenses/github.com/klauspost/compress/s2/cmd/internal/readahead/LICENSE
furnished to do so, subject to...
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 06 23:19:43 UTC 2021 - 1.1K bytes - Viewed (0) -
docs/sts/web-identity.py
authorization_code = request.args.get('code') data = {'grant_type': 'authorization_code', 'code': authorization_code, 'redirect_uri': callback_uri} id_token_response = requests.post( token_url, data=data, verify=False, allow_redirects=False, auth=(client_id, client_secret)) print('body: ' + id_token_response.text)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 28 01:37:51 UTC 2021 - 2.9K bytes - Viewed (0) -
docs_src/dataclasses/tutorial003.py
class Item: name: str description: Union[str, None] = None @dataclass class Author: name: str items: List[Item] = field(default_factory=list) # (3) app = FastAPI() @app.post("/authors/{author_id}/items/", response_model=Author) # (4) async def create_author_items(author_id: str, items: List[Item]): # (5) return {"name": author_id, "items": items} # (6)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Jul 31 14:09:15 UTC 2024 - 1.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/Constants.java
/** * @author shinsuke * */ public final class Constants { public static final String GET_METHOD = "GET"; public static final String HEAD_METHOD = "HEAD"; public static final String POST_METHOD = "POST"; public static final int OK_STATUS = 0; public static final int NOT_MODIFIED_STATUS = 304; public static final int OK_STATUS_CODE = 200; public static final int NOT_MODIFIED_STATUS_CODE = 304;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 2.2K bytes - Viewed (0) -
docs_src/security/tutorial003_an.py
current_user: Annotated[User, Depends(get_current_user)], ): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]): user_dict = fake_users_db.get(form_data.username) if not user_dict:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 2.5K bytes - Viewed (0) -
docs_src/security/tutorial003_an_py39.py
current_user: Annotated[User, Depends(get_current_user)], ): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login(form_data: Annotated[OAuth2PasswordRequestForm, Depends()]): user_dict = fake_users_db.get(form_data.username) if not user_dict:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 2.5K bytes - Viewed (0)