Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1251 - 1260 of 2,619 for gets (0.02 sec)

  1. docs_src/path_params_numeric_validations/tutorial002_an_py39.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})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 311 bytes
    - Viewed (0)
  2. docs_src/path_params_numeric_validations/tutorial003_an_py39.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})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 311 bytes
    - Viewed (0)
  3. docs_src/behind_a_proxy/tutorial003_py39.py

            {"url": "https://prod.example.com", "description": "Production environment"},
        ],
        root_path="/api/v1",
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 405 bytes
    - Viewed (0)
  4. docs_src/behind_a_proxy/tutorial004_py39.py

            {"url": "https://prod.example.com", "description": "Production environment"},
        ],
        root_path="/api/v1",
        root_path_in_servers=False,
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 437 bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java

         * @param body search criteria and paging parameters
         * @return JSON response containing list of mapping entries
         */
        // GET /api/admin/dict/mapping/settings/{dictId}
        @Execute
        public JsonResponse<ApiResult> get$settings(final String dictId, final SearchBody body) {
            body.dictId = dictId;
            validateApi(body, messages -> {});
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            @Test
            @DisplayName("Should get and set command")
            void testCommandProperty() {
                assertEquals(0, testMessage.getCommand());
                testMessage.setCommand(ServerMessageBlock2.SMB2_CREATE);
                assertEquals(ServerMessageBlock2.SMB2_CREATE, testMessage.getCommand());
            }
    
            @Test
            @DisplayName("Should get and set tree ID")
            void testTreeIdProperty() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

            };
    
        AsyncCallable<String> asyncCallable =
            Callables.asAsyncCallable(callable, newDirectExecutorService());
    
        ListenableFuture<String> future = asyncCallable.call();
        assertSame(expected, future.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable_exception() throws Exception {
        Exception expected = new IllegalArgumentException();
        Callable<String> callable =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_advanced_middleware/test_tutorial001.py

    from docs_src.advanced_middleware.tutorial001_py39 import app
    
    
    def test_middleware():
        client = TestClient(app, base_url="https://testserver")
        response = client.get("/")
        assert response.status_code == 200, response.text
    
        client = TestClient(app)
        response = client.get("/", follow_redirects=False)
        assert response.status_code == 307, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 479 bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001_py39.py hl[6] *}
    
    `@app.get("/")` сообщает **FastAPI**, что функция прямо под ним отвечает за обработку запросов, поступающих:
    
    * по пути `/`
    * с использованием <abbr title="метод HTTP GET"><code>get</code> операции</abbr>
    
    /// info | Информация о `@decorator`
    
    Синтаксис `@something` в Python называется «декоратор».
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/first-steps.md

    `@app.get("/")` 告诉 **FastAPI** 在它下方的函数负责处理如下访问请求:
    
    * 请求路径为 `/`
    * 使用 <abbr title="HTTP GET 方法"><code>get</code> 操作</abbr>
    
    /// info | `@decorator` Info
    
    `@something` 语法在 Python 中被称为「装饰器」。
    
    像一顶漂亮的装饰帽一样,将它放在一个函数的上方(我猜测这个术语的命名就是这么来的)。
    
    装饰器接收位于其下方的函数并且用它完成一些工作。
    
    在我们的例子中,这个装饰器告诉 **FastAPI** 位于其下方的函数对应着**路径** `/` 加上 `get` **操作**。
    
    它是一个「**路径操作装饰器**」。
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top