Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 402 for item_2 (0.06 seconds)

  1. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

                WebApiUtil.setObject("objectValue", new Object());
    
                // Test with collections
                java.util.List<String> list = java.util.Arrays.asList("item1", "item2");
                WebApiUtil.setObject("listValue", list);
    
                java.util.Map<String, String> map = new java.util.HashMap<>();
                map.put("key", "value");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  2. docs/es/docs/tutorial/handling-errors.md

    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Pero si el cliente solicita `http://example.com/items/bar` (un `item_id` inexistente `"bar"`), ese cliente recibirá un código de estado HTTP de 404 (el error "no encontrado"), y un response JSON de:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | Consejo
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  3. docs/pt/docs/tutorial/handling-errors.md

    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Mas se o cliente faz uma requisição para `http://example.com/items/bar` (ou seja, um não existente `item_id "bar"`), esse cliente receberá um HTTP status code 404 (o erro "não encontrado" — *not found error*), e uma resposta JSON:
    
    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | Dica
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/tutorial/path-params.md

    路徑參數 `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 型別註記為路徑參數宣告型別:
    
    {* ../../docs_src/path_params/tutorial002_py310.py hl[7] *}
    
    在這個例子裡,`item_id` 被宣告為 `int`。
    
    /// check
    
    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)
  5. tests/test_tutorial/test_additional_responses/test_tutorial001.py

    
    def test_path_operation():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"id": "foo", "value": "there goes my hero"}
    
    
    def test_path_operation_not_found():
        response = client.get("/items/bar")
        assert response.status_code == 404, response.text
        assert response.json() == {"message": "Item not found"}
    
    
    def test_openapi_schema():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  6. docs/fr/docs/deployment/docker.md

    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Maintenant, dans le même répertoire de projet, créez un fichier `Dockerfile` avec :
    
    ```{ .dockerfile .annotate }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 32.3K bytes
    - Click Count (0)
  7. docs/tr/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Metadata Tanımlayın { #declare-metadata }
    
    `Query` için geçerli olan parametrelerin aynısını tanımlayabilirsiniz.
    
    Örneğin, `item_id` path parametresi için bir `title` metadata değeri tanımlamak isterseniz şunu yazabilirsiniz:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Not
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  8. docs/de/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Metadaten deklarieren { #declare-metadata }
    
    Sie können dieselben Parameter wie für `Query` deklarieren.
    
    Um zum Beispiel einen `title`-Metadaten-Wert für den Pfad-Parameter `item_id` zu deklarieren, können Sie schreiben:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Hinweis
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Declarar metadatos { #declare-metadata }
    
    Puedes declarar todos los mismos parámetros que para `Query`.
    
    Por ejemplo, para declarar un valor de metadato `title` para el parámetro de path `item_id` puedes escribir:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Nota
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  10. docs/uk/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ## Оголошення метаданих { #declare-metadata }
    
    Ви можете оголошувати всі ті ж параметри, що і для `Query`.
    
    Наприклад, щоб оголосити значення метаданих `title` для параметра шляху `item_id`, ви можете написати:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *}
    
    /// note | Примітка
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 10K bytes
    - Click Count (0)
Back to Top