Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1001 - 1010 of 1,543 for item (0.03 seconds)

  1. docs/zh-hant/docs/tutorial/path-params.md

    如果你執行這個範例並在瀏覽器開啟 [http://127.0.0.1:8000/items/3](http://127.0.0.1:8000/items/3),你會看到這樣的回應:
    
    ```JSON
    {"item_id":3}
    ```
    
    /// check
    
    注意你的函式接收(並回傳)的值是 `3`,也就是 Python 的 `int`,而不是字串 `"3"`。
    
    因此,有了這個型別宣告,**FastAPI** 會自動為你處理請求的 <dfn title="將 HTTP 請求中的字串轉換為 Python 資料">「解析」</dfn>。
    
    ///
    
    ## 資料驗證 { #data-validation }
    
    但如果你在瀏覽器前往 [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo),你會看到漂亮的 HTTP 錯誤:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  2. scripts/docs.py

                stem = py_file.stem
                for suffix in ("_py39", "_py310"):
                    if suffix in stem:
                        an_stem = stem.replace(suffix, f"_an{suffix}", 1)
                        break
                else:
                    an_stem = f"{stem}_an"
                counterpart = full_path_str.replace(f"/{stem}.", f"/{an_stem}.")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  3. docs/de/docs/tutorial/dependencies/index.md

    Nehmen wir zum Beispiel an, Sie haben vier API-Endpunkte (*Pfadoperationen*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    Dann könnten Sie für jeden davon unterschiedliche Berechtigungsanforderungen hinzufügen, nur mit Abhängigkeiten und Unterabhängigkeiten:
    
    ```mermaid
    graph TB
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 11.3K bytes
    - Click Count (0)
  4. docs/ja/docs/tutorial/path-params.md

    Pythonのformat文字列と同様のシンタックスで「パスパラメータ」や「パス変数」を宣言できます:
    
    {* ../../docs_src/path_params/tutorial001_py310.py hl[6:7] *}
    
    パスパラメータ `item_id` の値は、引数 `item_id` として関数に渡されます。
    
    したがって、この例を実行して [http://127.0.0.1:8000/items/foo](http://127.0.0.1:8000/items/foo) にアクセスすると、次のレスポンスが表示されます。
    
    ```JSON
    {"item_id":"foo"}
    ```
    
    ## 型付きパスパラメータ { #path-parameters-with-types }
    
    標準のPythonの型アノテーションを使用して、関数内のパスパラメータの型を宣言できます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/storage/StorageClient.java

        /**
         * Lists objects in storage with the given prefix.
         *
         * @param prefix the path prefix to list objects under (null or empty for root)
         * @param maxItems maximum number of items to return
         * @return list of storage items
         */
        List<StorageItem> listObjects(String prefix, int maxItems);
    
        /**
         * Gets tags/metadata for an object.
         *
         * @param objectName the name/path of the object
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  6. docs/de/docs/editor-support.md

    # Editor-Unterstützung { #editor-support }
    
    Die offizielle [FastAPI-Erweiterung](https://marketplace.visualstudio.com/items?itemName=FastAPILabs.fastapi-vscode) verbessert Ihren FastAPI-Entwicklungsworkflow mit Pfadoperation-Erkennung und -Navigation sowie FastAPI-Cloud-Deployment und Live-Logstreaming.
    
    Weitere Details zur Erweiterung finden Sie im README im [GitHub-Repository](https://github.com/fastapi/fastapi-vscode).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:48:21 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  7. docs/ru/docs/editor-support.md

    # Поддержка редактора кода { #editor-support }
    
    Официальное [расширение FastAPI](https://marketplace.visualstudio.com/items?itemName=FastAPILabs.fastapi-vscode) улучшает ваш процесс разработки на FastAPI за счет обнаружения и навигации по *операциям пути* (обработчикам пути), а также развертывания в FastAPI Cloud и потоковой передачи логов в реальном времени.
    
    Подробности о расширении смотрите в README в [репозитории GitHub](https://github.com/fastapi/fastapi-vscode).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_additional_status_codes/test_tutorial001.py

        return client
    
    
    def test_update(client: TestClient):
        response = client.put("/items/foo", json={"name": "Wrestlers"})
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Wrestlers", "size": None}
    
    
    def test_create(client: TestClient):
        response = client.put("/items/red", json={"name": "Chillies"})
        assert response.status_code == 201, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 934 bytes
    - Click Count (0)
  9. docs/ja/docs/tutorial/dependencies/index.md

    例えば、4つのAPIエンドポイント(*path operation*)があるとします:
    
    * `/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/"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/dependencies/index.md

    Por exemplo, vamos supor que você possua 4 endpoints na sua API (*operações de rota*):
    
    * `/items/public/`
    * `/items/private/`
    * `/users/{user_id}/activate`
    * `/items/pro/`
    
    Você poderia adicionar diferentes requisitos de permissão para cada um deles utilizando apenas dependências e sub-dependências:
    
    ```mermaid
    graph TB
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.6K bytes
    - Click Count (0)
Back to Top