Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for apiNote (0.1 sec)

  1. docs/en/docs/advanced/generate-clients.md

    FastAPI uses a **unique ID** for each *path operation*, it is used for the **operation ID** and also for the names of any needed custom models, for requests or responses.
    
    You can customize that function. It takes an `APIRoute` and outputs a string.
    
    For example, here it is using the first tag (you will probably have only one tag) and the *path operation* name (the function name).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. fastapi/applications.py

                    """
                ),
            ] = None,
            generate_unique_id_function: Annotated[
                Callable[[routing.APIRoute], str],
                Doc(
                    """
                    Customize the function used to generate unique IDs for the *path
                    operations* shown in the generated OpenAPI.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/generate-clients.md

    ### 🛃 🏗 😍 🆔 🔢
    
    FastAPI ⚙️ **😍 🆔** 🔠 *➡ 🛠️*, ⚫️ ⚙️ **🛠️ 🆔** & 📛 🙆 💪 🛃 🏷, 📨 ⚖️ 📨.
    
    👆 💪 🛃 👈 🔢. ⚫️ ✊ `APIRoute` & 🔢 🎻.
    
    🖼, 📥 ⚫️ ⚙️ 🥇 🔖 (👆 🔜 🎲 ✔️ 🕴 1️⃣ 🔖) & *➡ 🛠️* 📛 (🔢 📛).
    
    👆 💪 ⤴️ 🚶‍♀️ 👈 🛃 🔢 **FastAPI** `generate_unique_id_function` 🔢:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/generate-clients.md

    Sie können diese Funktion anpassen. Sie nimmt eine `APIRoute` und gibt einen String zurück.
    
    Hier verwendet sie beispielsweise den ersten Tag (Sie werden wahrscheinlich nur einen Tag haben) und den Namen der *Pfadoperation* (den Funktionsnamen).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/generate-clients.md

    在这种情况下,您必须确保每个操作ID在其他方面是**唯一**的。
    
    例如,您可以确保每个*路径操作*都有一个标签,然后根据**标签**和*路径操作***名称**(函数名)来生成操作ID。
    
    ### 自定义生成唯一ID函数
    
    FastAPI为每个*路径操作*使用一个**唯一ID**,它用于**操作ID**,也用于任何所需自定义模型的名称,用于请求或响应。
    
    你可以自定义该函数。它接受一个 `APIRoute` 对象作为输入,并输出一个字符串。
    
    例如,以下是一个示例,它使用第一个标签(你可能只有一个标签)和*路径操作*名称(函数名)。
    
    然后,你可以将这个自定义函数作为 `generate_unique_id_function` 参数传递给 **FastAPI**:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="6-7  10"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. src/archive/zip/reader.go

    func (f *File) Open() (io.ReadCloser, error) {
    	bodyOffset, err := f.findBodyOffset()
    	if err != nil {
    		return nil, err
    	}
    	if strings.HasSuffix(f.Name, "/") {
    		// The ZIP specification (APPNOTE.TXT) specifies that directories, which
    		// are technically zero-byte files, must not have any associated file
    		// data. We previously tried failing here if f.CompressedSize64 != 0,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. cmd/api-errors.go

    		// any underlying errors if possible depending on
    		// their internal error types.
    		switch e := err.(type) {
    		case kms.Error:
    			apiErr = APIError{
    				Code:           e.APICode,
    				Description:    e.Err,
    				HTTPStatusCode: e.Code,
    			}
    		case batchReplicationJobError:
    			apiErr = APIError{
    				Description:    e.Description,
    				Code:           e.Code,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

        * If you have advanced custom logic to access each route's `route.response_class`, or the `router.default_response_class`, or the `app.default_response_class`: the default value for `response_class` in `APIRoute` and for `default_response_class` in `APIRouter` and `FastAPI` is now a `DefaultPlaceholder` used internally to handle and solve default values and overrides. The actual response class inside the `DefaultPlaceholder` is available at `route.response_class.value`....
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
Back to top