Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 165 for embeds (0.05 sec)

  1. docs/zh/docs/tutorial/body-multiple-params.md

    ///
    
    ## 嵌入单个请求体参数
    
    假设你只有一个来自 Pydantic 模型 `Item` 的请求体参数 `item`。
    
    默认情况下,**FastAPI** 将直接期望这样的请求体。
    
    但是,如果你希望它期望一个拥有 `item` 键并在值中包含模型内容的 JSON,就像在声明额外的请求体参数时所做的那样,则可以使用一个特殊的 `Body` 参数 `embed`:
    
    ```Python
    item: Item = Body(embed=True)
    ```
    
    比如:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="17"
    {!> ../../docs_src/body_multiple_params/tutorial005_an_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/body-multiple-params.md

    Pydanticモデル`Item`のボディパラメータ`item`を1つだけ持っているとしましょう。
    
    デフォルトでは、**FastAPI**はそのボディを直接期待します。
    
    しかし、追加のボディパラメータを宣言したときのように、キー `item` を持つ JSON とその中のモデルの内容を期待したい場合は、特別な `Body` パラメータ `embed` を使うことができます:
    
    ```Python
    item: Item = Body(..., embed=True)
    ```
    
    以下において:
    
    ```Python hl_lines="17"
    {!../../docs_src/body_multiple_params/tutorial005.py!}
    ```
    
    この場合、**FastAPI** は以下のようなボディを期待します:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. docs/en/docs/reference/fastapi.md

    You can import the `FastAPI` class directly from `fastapi`:
    
    ```python
    from fastapi import FastAPI
    ```
    
    ::: fastapi.FastAPI
        options:
            members:
                - openapi_version
                - webhooks
                - state
                - dependency_overrides
                - openapi
                - websocket
                - include_router
                - get
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 701 bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/filters/KotlinInternalFilter.groovy

    import japicmp.filter.ClassFilter
    import japicmp.filter.FieldFilter
    import javassist.CtBehavior
    import javassist.CtClass
    import javassist.CtField
    
    /**
     * Matches Kotlin <code>internal</code> members.
     */
    class KotlinInternalFilter implements ClassFilter, FieldFilter, BehaviorFilter {
    
        @Override
        boolean matches(CtClass ctClass) {
            return KotlinMetadataQueries.INSTANCE.isKotlinInternal(ctClass)
        }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  5. docs/en/mkdocs.yml

      # social:
      # Other plugins
      macros:
        include_yaml:
        - external_links: ../en/data/external_links.yml
        - github_sponsors: ../en/data/github_sponsors.yml
        - people: ../en/data/people.yml
        - members: ../en/data/members.yml
        - sponsors_badge: ../en/data/sponsors_badge.yml
        - sponsors: ../en/data/sponsors.yml
      redirects:
        redirect_maps:
          deployment/deta.md: deployment/cloud.md
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 20:28:02 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SID.java

                    this.origin_ctx = null;
                }
            }
        }
    
    
        /**
         * Get members of the group represented by this SID, if it is one.
         * 
         * @param authorityServerName
         * @param tc
         * @param flags
         * @return the members of the group
         * @throws IOException
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.9K bytes
    - Viewed (0)
  7. docs/en/docs/management.md

    * Adding labels to PRs.
    * Editing PR titles.
    * Adding commits on top of PRs to tweak them.
    * Mark answers in GitHub Discussions questions, etc.
    * Merge some specific types of PRs.
    
    You can see the current team members in [FastAPI People - Team](./fastapi-people.md#team){.internal-link target=_blank}.
    
    Joining the team is by invitation only, and I could update or remove permissions, instructions, or membership.
    
    ## FastAPI Experts
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 31 14:09:15 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Connection.kt

     *
     * Typically instances of this class are created, connected and exercised automatically by the HTTP
     * client. Applications may use this class to monitor HTTP connections as members of a
     * [connection pool][ConnectionPool].
     *
     * Do not confuse this class with the misnamed `HttpURLConnection`, which isn't so much a connection
     * as a single request/response exchange.
     *
     * ## Modern TLS
     *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

        // Write the payload.
        sink.writeAll(content)
      }
    
      /**
       * Execute [block] with a new namespace for type hints. Type hints from the enclosing type are no
       * longer usable by the current type's members.
       */
      fun <T> withTypeHint(block: () -> T): T {
        typeHintStack.add(null)
        try {
          return block()
        } finally {
          typeHintStack.removeAt(typeHintStack.size - 1)
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. docs/hotfixes.md

    ### Building a hotfix binary and container
    
    To add a hotfix tag to the binary version and embed the relevant `commit-id` following build helpers are available
    
    #### Builds the hotfix binary and uploads to https;//dl.min.io
    
    ```
    λ CRED_DIR=/media/builder/minio make hotfix-push
    ```
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Feb 14 21:36:02 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top