Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 213 for Swagger (0.05 seconds)

  1. docs/zh/docs/tutorial/body.md

    使用 [Pydantic](https://docs.pydantic.dev/) 模型来声明**请求体**,能充分利用它的功能和优点。
    
    /// info | 信息
    
    发送数据应使用以下之一:`POST`(最常见)、`PUT`、`DELETE` 或 `PATCH`。
    
    规范中没有定义用 `GET` 请求发送请求体的行为,但 FastAPI 仍支持这种方式,只用于非常复杂/极端的用例。
    
    由于不推荐,在使用 `GET` 时,Swagger UI 的交互式文档不会显示请求体的文档,而且中间的代理可能也不支持它。
    
    ///
    
    ## 导入 Pydantic 的 `BaseModel` { #import-pydantics-basemodel }
    
    从 `pydantic` 中导入 `BaseModel`:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/body.md

    Sending a body with a `GET` request has an undefined behavior in the specifications, nevertheless, it is supported by FastAPI, only for very complex/extreme use cases.
    
    As it is discouraged, the interactive docs with Swagger UI won't show the documentation for the body when using `GET`, and proxies in the middle might not support it.
    
    ///
    
    ## Import Pydantic's `BaseModel` { #import-pydantics-basemodel }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. docs/en/mkdocs.yml

        - how-to/custom-request-and-route.md
        - how-to/conditional-openapi.md
        - how-to/extending-openapi.md
        - how-to/separate-openapi-schemas.md
        - how-to/custom-docs-ui-assets.md
        - how-to/configure-swagger-ui.md
        - how-to/testing-database.md
        - how-to/authentication-error-status-code.md
    - Reference (Code API):
      - reference/index.md
      - reference/fastapi.md
      - reference/parameters.md
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  4. docs/ja/docs/deployment/docker.md

    これらのURLにもアクセスできます:  [http://192.168.99.100/docs](http://192.168.99.100/docs) や [http://127.0.0.1/docs](http://127.0.0.1/docs) (またはそれに相当するDockerホストを使用したもの)
    
    アクセスすると、自動対話型APIドキュメント([Swagger UI](https://github.com/swagger-api/swagger-ui)が提供)が表示されます:
    
    ![Swagger UI](https://fastapi.tiangolo.com/img/index/index-01-swagger-ui-simple.png)
    
    ## 代替のAPIドキュメント { #alternative-api-docs }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 36.8K bytes
    - Click Count (0)
  5. docs/en/docs/release-notes.md

    * ⬆ Upgrade Swagger UI - swagger-ui-dist@4. This handles a security issue in Swagger UI itself where it could be possible to inject HTML into Swagger UI. Please upgrade as soon as you can, in particular if you expose your Swagger UI (`/docs`) publicly to non-expert users. PR [#4347](https://github.com/tiangolo/fastapi/pull/4347) by [@RAlanWright](https://github.com/RAlanWright)....
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Apr 03 12:07:04 GMT 2026
    - 631K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/openapi-callbacks.md

    So, what we will do next is add the code to document how that *external API* should look like to receive the callback from *your API*.
    
    That documentation will show up in the Swagger UI at `/docs` in your API, and it will let external developers know how to build the *external API*.
    
    This example doesn't implement the callback itself (that could be just a line of code), only the documentation part.
    
    /// tip
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/openapi-callbacks.md

    httpx.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    但回调最重要的部分可能是,根据 API 要发送给回调请求体的数据等内容,确保您的 API 用户(外部开发者)正确地实现*外部 API*。
    
    因此,我们下一步要做的就是添加代码,为从 API 接收回调的*外部 API*存档。
    
    这部分文档在 `/docs` 下的 Swagger UI 中显示,并且会告诉外部开发者如何构建*外部 API*。
    
    本例没有实现回调本身(只是一行代码),只有文档部分。
    
    /// tip | 提示
    
    实际的回调只是 HTTP 请求。
    
    实现回调时,要使用 [HTTPX](https://www.python-httpx.org) 或 [Requests](https://requests.readthedocs.io/)。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  8. docs/zh/docs/tutorial/path-params.md

    ## 文档 { #documentation }
    
    访问 [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs),查看自动生成的交互式 API 文档:
    
    <img src="/img/tutorial/path-params/image01.png">
    
    /// check | 检查
    
    还是使用 Python 类型声明,**FastAPI** 提供了(集成 Swagger UI 的)自动交互式文档。
    
    注意,路径参数的类型是整数。
    
    ///
    
    ## 基于标准的好处,备选文档 { #standards-based-benefits-alternative-documentation }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/openapi-callbacks.md

    ```
    
    但回呼中最重要的部分,可能是在確保你的 API 使用者(外部開發者)能正確實作「外部 API」,符合「你的 API」在回呼請求 body 中要送出的資料格式,等等。
    
    因此,接下來我們要加上用來「文件化」說明,該「外部 API」應該長什麼樣子,才能接收來自「你的 API」的回呼。
    
    這份文件會出現在你的 API 的 Swagger UI `/docs`,讓外部開發者知道該如何建置「外部 API」。
    
    這個範例不會實作回呼本身(那可能就只是一行程式碼),只會實作文件的部分。
    
    /// tip
    
    實際的回呼就是一個 HTTP 請求。
    
    當你自己實作回呼時,可以使用像是 [HTTPX](https://www.python-httpx.org) 或 [Requests](https://requests.readthedocs.io/)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/security/index.md

    また、「OpenID」という仕様もありました。それは、**OpenID Connect**と同じことを解決しようとしたものですが、OAuth2に基づいているわけではありませんでした。
    
    つまり、完全な追加システムだったのです。
    
    現在ではあまり普及していませんし、使われてもいません。
    
    ## OpenAPI { #openapi }
    
    OpenAPI(以前はSwaggerとして知られていました)は、APIを構築するためのオープンな仕様です(現在はLinux Foundationの一部になっています)。
    
    **FastAPI**は、**OpenAPI**をベースにしています。
    
    それが、複数の自動対話型ドキュメント・インターフェースやコード生成などを可能にしているのです。
    
    OpenAPIには、複数のセキュリティ「スキーム」を定義する方法があります。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 15:24:30 GMT 2026
    - 6.1K bytes
    - Click Count (0)
Back to Top