Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 365 for items (0.15 sec)

  1. docs/vi/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/bigger-applications.md

    ## ➕1️⃣ 🕹 ⏮️ `APIRouter`
    
    ➡️ 💬 👆 ✔️ 🔗 💡 🚚 "🏬" ⚪️➡️ 👆 🈸 🕹 `app/routers/items.py`.
    
    👆 ✔️ *➡ 🛠️* :
    
    * `/items/`
    * `/items/{item_id}`
    
    ⚫️ 🌐 🎏 📊 ⏮️ `app/routers/users.py`.
    
    ✋️ 👥 💚 🙃 & 📉 📟 🍖.
    
    👥 💭 🌐 *➡ 🛠️* 👉 🕹 ✔️ 🎏:
    
    * ➡ `prefix`: `/items`.
    * `tags`: (1️⃣ 🔖: `items`).
    * ➕ `responses`.
    * `dependencies`: 👫 🌐 💪 👈 `X-Token` 🔗 👥 ✍.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/dependencies/index.md

    예를 들면, 여러분이 4개의 API 엔드포인트(*경로 작동*)를 가지고 있다고 해봅시다:
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    그 다음 각각에 대해 그저 의존성과 하위 의존성을 사용하여 다른 권한 요구 사항을 추가할 수 있을 겁니다:
    
    ```mermaid
    graph TB
    
    current_user(["current_user"])
    active_user(["active_user"])
    admin_user(["admin_user"])
    paying_user(["paying_user"])
    
    public["/items/public/"]
    private["/items/private/"]
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/query-params.md

    ```
    
    En este caso, si vas a:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/path-params.md

    {!../../../docs_src/path_params/tutorial001.py!}
    ```
    
    Der Wert des Pfad-Parameters `item_id` wird Ihrer Funktion als das Argument `item_id` übergeben.
    
    Wenn Sie dieses Beispiel ausführen und auf <a href="http://127.0.0.1:8000/items/foo" class="external-link" target="_blank">http://127.0.0.1:8000/items/foo</a> gehen, sehen Sie als Response:
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## Pfad-Parameter mit Typen
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  6. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

    // or a string representing a sub-field or item. The string will follow one of these four formats:
    // 'f:<name>', where <name> is the name of a field in a struct, or key in a map
    // 'v:<value>', where <value> is the exact json formatted value of a list item
    // 'i:<index>', where <index> is position of a item in a list
    // 'k:<keys>', where <keys> is a map of  a list item's key fields to their unique values
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 53.3K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/query-params.md

    Nesse caso, se você for para:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. docs/yo/docs/index.md

    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/security/oauth2-scopes.md

    Die *Pfadoperation* selbst deklariert auch einen Scope, `"items"`, sodass dieser auch in der Liste der `security_scopes.scopes` enthalten ist, die an `get_current_user` übergeben wird.
    
    So sieht die Hierarchie der Abhängigkeiten und Scopes aus:
    
    * Die *Pfadoperation* `read_own_items` hat:
        * Erforderliche Scopes `["items"]` mit der Abhängigkeit:
        * `get_current_active_user`:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:08 GMT 2024
    - 22.8K bytes
    - Viewed (0)
Back to top