- Sort Score
- Result 10 results
- Languages All
Results 371 - 380 of 716 for OpenAPI (0.08 sec)
-
docs/zh/docs/advanced/security/oauth2-scopes.md
**FastAPI** 无缝集成 OAuth2 作用域(`Scopes`),可以直接使用。 作用域是更精密的权限系统,遵循 OAuth2 标准,与 OpenAPI 应用(和 API 自动文档)集成。 OAuth2 也是脸书、谷歌、GitHub、微软、推特等第三方身份验证应用使用的机制。这些身份验证应用在用户登录应用时使用 OAuth2 提供指定权限。 脸书、谷歌、GitHub、微软、推特就是 OAuth2 作用域登录。 本章介绍如何在 **FastAPI** 应用中使用 OAuth2 作用域管理验证与授权。 /// warning | "警告" 本章内容较难,刚接触 FastAPI 的新手可以跳过。 OAuth2 作用域不是必需的,没有它,您也可以处理身份验证与授权。 但 OAuth2 作用域与 API(通过 OpenAPI)及 API 文档集成地更好。 不管怎么说,**FastAPI** 支持在代码中使用作用域或其它安全/授权需求项。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.8K bytes - Viewed (0) -
docs/en/docs/tutorial/response-status-code.md
/// It will: * Return that status code in the response. * Document it as such in the OpenAPI schema (and so, in the user interfaces): <img src="/img/tutorial/response-status-code/image01.png"> /// note Some response codes (see the next section) indicate that the response does not have a body. FastAPI knows this, and will produce OpenAPI docs that state there is no response body. /// ## About HTTP status codes
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 11:13:18 UTC 2024 - 3.9K bytes - Viewed (0) -
tests/test_tuples.py
assert response.status_code == 422, response.text def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/model-with-tuple/": { "post": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 11.8K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_configurations/test_tutorial006.py
assert response.status_code == expected_status assert response.json() == expected_response def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/": { "get": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.3K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-operation-configuration.md
//// tab | Python 3.10 and above ```Python hl_lines="1 15" {!> ../../docs_src/path_operation_configuration/tutorial001_py310.py!} ``` //// Esse código de status será usado na resposta e será adicionado ao esquema OpenAPI. /// note | "Detalhes Técnicos" Você também poderia usar `from starlette import status`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005_an_py39.py
}, ) assert response.status_code == 200 @needs_py39 def test_openapi_schema(client: TestClient) -> None: response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/{item_id}": { "put": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 26 18:03:13 UTC 2023 - 6.8K bytes - Viewed (0) -
tests/test_tutorial/test_generate_clients/test_tutorial003.py
{"name": "Plumbus", "price": 3}, {"name": "Portal Gun", "price": 9001}, ] def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/": { "get": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 7.1K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial001_an.py
assert response.headers["WWW-Authenticate"] == "Bearer" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": { "/items/": { "get": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 1.9K bytes - Viewed (0) -
docs/pt/docs/features.md
# Recursos ## Recursos do FastAPI **FastAPI** te oferece o seguinte: ### Baseado em padrões abertos
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 10.3K bytes - Viewed (0) -
docs/em/docs/tutorial/metadata.md
### ✔ 🔖 ✔ 🔠 🔖 🗃 📖 🔬 ✔ 🎦 🩺 🎚. 🖼, ✋️ `users` 🔜 🚶 ⏮️ `items` 🔤 ✔, ⚫️ 🎦 ⏭ 👫, ↩️ 👥 🚮 👫 🗃 🥇 📖 📇. ## 🗄 📛 🔢, 🗄 🔗 🍦 `/openapi.json`. ✋️ 👆 💪 🔗 ⚫️ ⏮️ 🔢 `openapi_url`. 🖼, ⚒ ⚫️ 🍦 `/api/v1/openapi.json`: ```Python hl_lines="3" {!../../docs_src/metadata/tutorial002.py!} ``` 🚥 👆 💚 ❎ 🗄 🔗 🍕 👆 💪 ⚒ `openapi_url=None`, 👈 🔜 ❎ 🧾 👩💻 🔢 👈 ⚙️ ⚫️.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.1K bytes - Viewed (0)