Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 371 for skipif (0.04 sec)

  1. tests/test_tutorial/test_query_params/test_tutorial006.py

        assert response.status_code == 200
        assert response.json() == {
            "item_id": "foo",
            "needy": "very",
            "skip": 0,
            "limit": None,
        }
    
    
    def test_foo_no_needy(client: TestClient):
        response = client.get("/items/foo?skip=a&limit=b")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "missing",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/query-params.md

    В примере выше значения по умолчанию равны `skip=0` и `limit=10`.
    
    Таким образом, результат перехода по URL-адресу:
    
    ```
    http://127.0.0.1:8000/items/
    ```
    
    будет таким же, как если перейти используя параметры по умолчанию:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    Но если вы введёте, например:
    
    ```
    http://127.0.0.1:8000/items/?skip=20
    ```
    
    Значения параметров в вашей функции будут:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial001_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    async def common_parameters(
        q: Union[str, None] = None, skip: int = 0, limit: int = 100
    ):
        return {"q": q, "skip": skip, "limit": limit}
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
        return commons
    
    
    @app.get("/users/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 473 bytes
    - Viewed (0)
  4. docs_src/query_params/tutorial006_py39.py

    from typing import Union
    
    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: Union[int, None] = None
    ):
        item = {"item_id": item_id, "needy": needy, "skip": skip, "limit": limit}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 301 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_dependencies/test_tutorial002_tutorial003_tutorial004.py

            ),
            (
                "/items?q=foo&skip=1",
                200,
                {"items": [{"item_name": "Bar"}, {"item_name": "Baz"}], "q": "foo"},
            ),
            (
                "/items?q=bar&limit=2",
                200,
                {"items": [{"item_name": "Foo"}, {"item_name": "Bar"}], "q": "bar"},
            ),
            (
                "/items?q=bar&skip=1&limit=1",
                200,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/query-params.md

    Dans l'exemple ci-dessus, ils ont des valeurs par défaut qui sont `skip=0` et `limit=10`.
    
    Donc, accéder à l'URL :
    
    ```
    http://127.0.0.1:8000/items/
    ```
    
    serait équivalent à accéder à l'URL :
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    Mais si vous accédez à, par exemple :
    
    ```
    http://127.0.0.1:8000/items/?skip=20
    ```
    
    Les valeurs des paramètres de votre fonction seront :
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        if (length < 0) {
          // compressed name pointer, first two bits are 1
          // drop second byte of compression offset
          source.skip(1)
        } else {
          while (length > 0) {
            // skip each part of the domain name
            source.skip(length.toLong())
            length = source.readByte().toInt()
          }
        }
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. docs/tr/docs/tutorial/query-params.md

    Yukarıdaki örnekte `skip=0` ve `limit=10` varsayılan değere sahiplerdir.
    
    Yani, aşağıdaki bağlantıya gitmek:
    
    ```
    http://127.0.0.1:8000/items/
    ```
    
    şu adrese gitmek ile aynı etkiye sahiptir:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    Ancak, mesela şöyle bir adresi ziyaret ederseniz:
    
    ```
    http://127.0.0.1:8000/items/?skip=20
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/query-params.md

    No exemplo acima eles tem valores padrão de `skip=0` e `limit=10`.
    
    Então, se você for até a URL:
    
    ```
    http://127.0.0.1:8000/items/
    ```
    
    Seria o mesmo que ir para:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    Mas, se por exemplo você for para:
    
    ```
    http://127.0.0.1:8000/items/?skip=20
    ```
    
    Os valores dos parâmetros na sua função serão:
    
    * `skip=20`: Por que você definiu isso na URL
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/query-params.md

    En el ejemplo anterior, tienen valores por defecto de `skip=0` y `limit=10`.
    
    Entonces, ir a la URL:
    
    ```
    http://127.0.0.1:8000/items/
    ```
    
    sería lo mismo que ir a:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    Pero si vas a, por ejemplo:
    
    ```
    http://127.0.0.1:8000/items/?skip=20
    ```
    
    Los valores de los parámetros en tu función serán:
    
    * `skip=20`: porque lo configuraste en la URL
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top