Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 535 for dict (0.02 sec)

  1. docs/ja/docs/tutorial/security/get-current-user.md

    そして、セキュリティ要件のためにどんなモデルやデータでも利用することができます。(この場合は、 Pydanticモデルの `User`)
    
    しかし、特定のデータモデルやクラス、型に制限されることはありません。
    
    モデルを、 `id` と `email` は持つが、 `username` は全く持たないようにしたいですか? わかりました。同じ手段でこうしたこともできます。
    
    ある `str` だけを持ちたい? あるいはある `dict` だけですか? それとも、データベースクラスのモデルインスタンスを直接持ちたいですか? すべて同じやり方で機能します。
    
    実際には、あなたのアプリケーションにはログインするようなユーザーはおらず、単にアクセストークンを持つロボットやボット、別のシステムがありますか?ここでも、全く同じようにすべて機能します。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/path-params.md

    ///
    
    #### Return *enumeration members* { #return-enumeration-members }
    
    You can return *enum members* from your *path operation*, even nested in a JSON body (e.g. a `dict`).
    
    They will be converted to their corresponding values (strings in this case) before returning them to the client:
    
    {* ../../docs_src/path_params/tutorial005.py hl[18,21,23] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/handling-errors.md

    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | Consejo
    
    Cuando lanzas un `HTTPException`, puedes pasar cualquier valor que pueda convertirse a JSON como el parámetro `detail`, no solo `str`.
    
    Podrías pasar un `dict`, un `list`, etc.
    
    Son manejados automáticamente por **FastAPI** y convertidos a JSON.
    
    ///
    
    ## Agrega headers personalizados
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/path-params.md

    ///
    
    #### Devolver *miembros* de enumeración
    
    Puedes devolver *miembros de enum* desde tu *path operation*, incluso anidados en un cuerpo JSON (por ejemplo, un `dict`).
    
    Serán convertidos a sus valores correspondientes (cadenas en este caso) antes de devolverlos al cliente:
    
    {* ../../docs_src/path_params/tutorial005.py hl[18,21,23] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/custom-response.md

    Sie können sie direkt zurückgeben.
    
    Sie akzeptiert die folgenden Parameter:
    
    * `content` – Ein `str` oder `bytes`.
    * `status_code` – Ein `int`-HTTP-Statuscode.
    * `headers` – Ein `dict` von Strings.
    * `media_type` – Ein `str`, der den Medientyp angibt. Z. B. `"text/html"`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. docs/id/docs/tutorial/first-steps.md

    ///
    
    ### Langkah 5: hasilkan konten
    
    {* ../../docs_src/first_steps/tutorial001.py hl[8] *}
    
    Anda bisa menghasilkan `dict`, `list`, nilai singular seperti `str`, `int`, dll.
    
    Anda juga bisa menghasilkan model Pydantic (anda akan belajar mengenai ini nanti).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Thu Dec 12 21:46:36 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. docs/tr/docs/tutorial/path-params.md

    /// tip | İpucu
    
    `"lenet"` değerine `ModelName.lenet.value` tanımı ile de ulaşabilirsiniz.
    
    ///
    
    #### *Enumeration Üyelerini* Döndürelim
    
    JSON gövdesine (örneğin bir `dict`) gömülü olsalar bile *yol operasyonundaki* *enum üyelerini* döndürebilirsiniz.
    
    Bu üyeler istemciye iletilmeden önce kendilerine karşılık gelen değerlerine (bu durumda string) dönüştürüleceklerdir:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. docs/uk/docs/tutorial/path-params.md

    ///
    
    
    #### Повернення *елементів перелічування*
    
    Ви можете повертати *елементи перелічування* з вашої *операції шляху*, навіть вкладені у JSON-тіло (наприклад, `dict`).
    
    Вони будуть перетворені на відповідні значення (у цьому випадку рядки) перед поверненням клієнту:
    
    {* ../../docs_src/path_params/tutorial005.py hl[18,21,23] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/custom-response.md

    Puedes devolverla directamente.
    
    Acepta los siguientes parámetros:
    
    * `content` - Un `str` o `bytes`.
    * `status_code` - Un código de estado HTTP `int`.
    * `headers` - Un `dict` de strings.
    * `media_type` - Un `str` que da el media type. Por ejemplo, `"text/html"`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/first-steps.md

    ///
    
    ### Step 5: return the content { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001.py hl[8] *}
    
    You can return a `dict`, `list`, singular values as `str`, `int`, etc.
    
    You can also return Pydantic models (you'll see more about that later).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top