Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 561 - 570 of 892 for Item (0.02 seconds)

  1. docs_src/response_directly/tutorial001_py310.py

    from fastapi.responses import JSONResponse
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        title: str
        timestamp: datetime
        description: str | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{id}")
    def update_item(id: str, item: Item):
        json_compatible_item_data = jsonable_encoder(item)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 474 bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

          private var canRemove = false
    
          override fun hasNext(): Boolean {
            if (nextUrl != null) return true
    
            canRemove = false // Prevent delegate.remove() on the wrong item!
            while (delegate.hasNext()) {
              try {
                delegate.next().use { snapshot ->
                  val metadata = snapshot.getSource(ENTRY_METADATA).buffer()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  3. docs_src/handling_errors/tutorial005_py310.py

        return JSONResponse(
            status_code=422,
            content=jsonable_encoder({"detail": exc.errors(), "body": exc.body}),
        )
    
    
    class Item(BaseModel):
        title: str
        size: int
    
    
    @app.post("/items/")
    async def create_item(item: Item):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 626 bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/body-multiple-params.md

    ## Declare um único parâmetro de corpo indicando sua chave { #embed-a-single-body-parameter }
    
    Suponha que você tem um único parâmetro de corpo `item`, a partir de um modelo Pydantic `Item`.
    
    Por padrão, o **FastAPI** esperará que seu conteúdo venha no corpo diretamente.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:48:53 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  5. src/main/resources/fess_message_hi.properties

    constraints.URL.message = {item} एक मान्य URL नहीं है।
    constraints.Required.message = {item} आवश्यक है।
    constraints.TypeInteger.message = {item} एक संख्या होनी चाहिए।
    constraints.TypeLong.message = {item} एक संख्या होनी चाहिए।
    constraints.TypeFloat.message = {item} एक संख्या होनी चाहिए।
    constraints.TypeDouble.message = {item} एक संख्या होनी चाहिए।
    constraints.TypeAny.message = {item} को {propertyType} में परिवर्तित नहीं किया जा सकता।
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 20.2K bytes
    - Click Count (0)
  6. src/main/resources/fess_message_es.properties

    constraints.URL.message = {item} no es una URL válida.
    constraints.Required.message = {item} es obligatorio.
    constraints.TypeInteger.message = {item} debe ser un número.
    constraints.TypeLong.message = {item} debe ser un número.
    constraints.TypeFloat.message = {item} debe ser un número.
    constraints.TypeDouble.message = {item} debe ser un número.
    constraints.TypeAny.message = {item} no se puede convertir a {propertyType}.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  7. docs/es/docs/tutorial/stream-json-lines.md

    Entonces, enviará el primer ítem, el cliente lo recibirá y empezará a procesarlo, y tú podrías seguir produciendo el siguiente ítem.
    
    ```mermaid
    sequenceDiagram
        participant App
        participant Client
    
        App->>App: Produce Item 1
        App->>Client: Send Item 1
        App->>App: Produce Item 2
        Client->>Client: Process Item 1
        App->>Client: Send Item 2
        App->>App: Produce Item 3
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:12:26 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  8. docs/uk/docs/tutorial/body-multiple-params.md

    Скажімо, у вас є лише один параметр тіла `item` з моделі Pydantic `Item`.
    
    За замовчуванням **FastAPI** очікуватиме його тіло безпосередньо.
    
    Але якщо ви хочете, щоб він очікував JSON з ключем `item`, а всередині нього - вміст моделі, як це відбувається, коли ви оголошуєте додаткові параметри тіла, ви можете використати спеціальний параметр `Body` - `embed`:
    
    ```Python
    item: Item = Body(embed=True)
    ```
    
    як у прикладі:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 12:42:01 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/body-multiple-params.md

    Supongamos que solo tienes un único parámetro de cuerpo `item` de un modelo Pydantic `Item`.
    
    Por defecto, **FastAPI** esperará su cuerpo directamente.
    
    Pero si deseas que espere un JSON con una clave `item` y dentro de ella los contenidos del modelo, como lo hace cuando declaras parámetros de cuerpo extra, puedes usar el parámetro especial `Body` `embed`:
    
    ```Python
    item: Item = Body(embed=True)
    ```
    
    como en:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:41:41 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_body/test_tutorial003.py

                            },
                            "summary": "Update Item",
                            "operationId": "update_item_items__item_id__put",
                            "requestBody": {
                                "content": {
                                    "application/json": {
                                        "schema": {"$ref": "#/components/schemas/Item"}
                                    }
                                },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 6.1K bytes
    - Click Count (0)
Back to Top