Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for foo (0.18 sec)

  1. tests/test_jsonable_encoder.py

        assert jsonable_encoder(model, exclude_defaults=True) == {"foo": "foo"}
        assert jsonable_encoder(model, exclude_unset=True, exclude_defaults=True) == {
            "foo": "foo"
        }
        assert jsonable_encoder(model, include={"foo"}) == {"foo": "foo"}
        assert jsonable_encoder(model, exclude={"bla"}) == {"foo": "foo", "bar": "bar"}
        assert jsonable_encoder(model, include={}) == {}
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/query-params.md

    ```
    
    En este caso, si vas a:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    o
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/query-params.md

    Nesse caso, se você for para:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    ou
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    или
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. tests/main.py

        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/int/default")
    def get_query_type_int_default(query: int = 10):
        return f"foo bar {query}"
    
    
    @app.get("/query/param")
    def get_query_param(query=Query(default=None)):
        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/param-required")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. docs/tr/docs/tutorial/query-params.md

    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    veya
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_query_params/test_tutorial005.py

    from docs_src.query_params.tutorial005 import app
    
    client = TestClient(app)
    
    
    def test_foo_needy_very():
        response = client.get("/items/foo?needy=very")
        assert response.status_code == 200
        assert response.json() == {"item_id": "foo", "needy": "very"}
    
    
    def test_foo_no_needy():
        response = client.get("/items/foo")
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/query-params.md

    ```
    
    이 경우, 아래로 이동하면:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    또는
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    또는
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    또는
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    또는
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/query-params.md

    ```
    
    本例中,访问:
    
    ```
    http://127.0.0.1:8000/items/foo?short=1
    ```
    
    或
    
    ```
    http://127.0.0.1:8000/items/foo?short=True
    ```
    
    或
    
    ```
    http://127.0.0.1:8000/items/foo?short=true
    ```
    
    或
    
    ```
    http://127.0.0.1:8000/items/foo?short=on
    ```
    
    或
    
    ```
    http://127.0.0.1:8000/items/foo?short=yes
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  10. tests/test_filter_pydantic_sub_model_pv2.py

        client = TestClient(app)
        return client
    
    
    @needs_pydanticv2
    def test_filter_sub_model(client: TestClient):
        response = client.get("/model/modelA")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "modelA",
            "description": "model-a-desc",
            "foo": {"username": "test-user"},
        }
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
Back to top