Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 1,119 for Items (0.02 seconds)

  1. docs_src/query_params/tutorial006_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_user_item(
        item_id: str, needy: str, skip: int = 0, limit: int | None = None
    ):
        item = {"item_id": item_id, "needy": needy, "skip": skip, "limit": limit}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 269 bytes
    - Click Count (0)
  2. src/main/webapp/js/suggestor.js

                      }
                    });
    
                    // Mouse enter handler
                    $liEle.on("mouseenter", function () {
                      var $items = $(this).closest("ol").children("li");
                      listSelNum = $items.index(this) + 1;
                      $items.each(function (i) {
                        var isSelected = i === listSelNum - 1;
                        applyListItemStyle($(this), isSelected);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 11:04:08 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  3. src/main/webapp/WEB-INF/view/chat/chat.jsp

    	<main class="container">
    		<div class="row">
    			<div class="col-12 col-lg-10 offset-lg-1">
    				<div class="card shadow-sm">
    					<div class="card-header d-flex justify-content-between align-items-center">
    						<div id="statusArea" class="status-lozenge status-ready" role="status" aria-live="polite">
    							<i class="fa fa-robot me-1" aria-hidden="true"></i>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 01:36:02 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  4. docs_src/body_multiple_params/tutorial004_py310.py

        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
        *,
        item_id: int,
        item: Item,
        user: User,
        importance: int = Body(gt=0),
        q: str | None = None,
    ):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 10 18:49:18 GMT 2023
    - 603 bytes
    - Click Count (0)
  5. docs_src/custom_response/tutorial002_py310.py

    from fastapi import FastAPI
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.get("/items/", response_class=HTMLResponse)
    async def read_items():
        return """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 352 bytes
    - Click Count (0)
  6. docs/zh-hant/docs/advanced/behind-a-proxy.md

    ### 使用 HTTPS 的重新導向 { #redirects-with-https }
    
    例如,假設你定義了一個「路徑操作(path operation)」`/items/`:
    
    {* ../../docs_src/behind_a_proxy/tutorial001_01_py310.py hl[6] *}
    
    如果用戶端嘗試前往 `/items`,預設會被重新導向到 `/items/`。
    
    但在設定「CLI 選項」`--forwarded-allow-ips` 之前,它可能會被重新導向到 `http://localhost:8000/items/`。
    
    不過,也許你的應用實際部署在 `https://mysuperapp.com`,那重新導向就應該是 `https://mysuperapp.com/items/`。
    
    設定 `--proxy-headers` 之後,FastAPI 就能重新導向到正確的位置。😎
    
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 15.3K bytes
    - Click Count (0)
  7. src/main/webapp/WEB-INF/view/admin/elevateword/admin_elevateword_details.jsp

                                            <td><c:forEach var="l" varStatus="s"
                                                           items="${labelTypeItems}">
                                                <c:forEach var="ltid" varStatus="s"
                                                           items="${labelTypeIds}">
                                                    <c:if test="${ltid==l.id}">
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  8. docs_src/path_params_numeric_validations/tutorial002_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Path
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        q: str, item_id: Annotated[int, Path(title="The ID of the item to get")]
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 311 bytes
    - Click Count (0)
  9. docs_src/path_params_numeric_validations/tutorial003_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Path
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        item_id: Annotated[int, Path(title="The ID of the item to get")], q: str
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 311 bytes
    - Click Count (0)
  10. docs_src/header_param_models/tutorial003_py310.py

    app = FastAPI()
    
    
    class CommonHeaders(BaseModel):
        host: str
        save_data: bool
        if_modified_since: str | None = None
        traceparent: str | None = None
        x_tag: list[str] = []
    
    
    @app.get("/items/")
    async def read_items(headers: CommonHeaders = Header(convert_underscores=False)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 23 20:48:54 GMT 2025
    - 377 bytes
    - Click Count (0)
Back to Top