Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1051 - 1060 of 1,534 for json$ (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/dependency_testing/tutorial001_py310.py

        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == {
            "message": "Hello Items!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    def test_override_in_items_with_q():
        response = client.get("/items/?q=foo")
        assert response.status_code == 200
        assert response.json() == {
            "message": "Hello Items!",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.4K bytes
    - Click Count (0)
  2. tests/test_custom_schema_fields.py

    
    def test_custom_response_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json()["components"]["schemas"]["Item"] == item_schema
    
    
    def test_response():
        # For coverage
        response = client.get("/foo")
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  3. docs/de/docs/tutorial/security/simple-oauth2.md

    Aber konzentrieren wir uns zunächst auf die spezifischen Details, die wir benötigen.
    
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip | Tipp
    
    Gemäß der Spezifikation sollten Sie ein JSON mit einem `access_token` und einem `token_type` zurückgeben, genau wie in diesem Beispiel.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  4. docs/es/docs/tutorial/security/simple-oauth2.md

    Pero por ahora, enfoquémonos en los detalles específicos que necesitamos.
    
    ///
    
    {* ../../docs_src/security/tutorial003_an_py310.py hl[87] *}
    
    /// tip | Consejo
    
    De acuerdo con la especificación, deberías devolver un JSON con un `access_token` y un `token_type`, igual que en este ejemplo.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 10.2K bytes
    - Click Count (0)
  5. tests/test_default_response_class.py

    text_type = "text/plain; charset=utf-8"
    html_type = "text/html; charset=utf-8"
    override_type = "application/x-override"
    
    
    def test_app():
        with client:
            response = client.get("/")
        assert response.json() == {"msg": "Hello World"}
        assert response.headers["content-type"] == orjson_type
    
    
    def test_app_override():
        with client:
            response = client.get("/override")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 20:49:20 GMT 2020
    - 5.2K bytes
    - Click Count (0)
  6. docs/ja/docs/advanced/response-directly.md

    {* ../../docs_src/response_model/tutorial001_01_py310.py hl[16,21] *}
    
    これは Rust 側で行われるため、通常の Python と `JSONResponse` クラスで行う場合より、パフォーマンスははるかに良くなります。
    
    `response_model` や戻り値の型を使用する場合、FastAPI はデータ変換に(低速になりうる)`jsonable_encoder` も `JSONResponse` クラスも使いません。
    
    代わりに、response model(または戻り値の型)を使って Pydantic が生成した JSON のバイト列をそのまま用い、JSON 用の正しいメディアタイプ(`application/json`)を持つ `Response` を直接返します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  7. docs/uk/docs/how-to/conditional-openapi.md

    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    Потім, якщо ви перейдете за URL `/openapi.json`, `/docs` або `/redoc`, ви просто отримаєте помилку `404 Not Found` на кшталт:
    
    ```JSON
    {
        "detail": "Not Found"
    }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  8. docs/ru/docs/tutorial/body-multiple-params.md

    ///
    
    ## Несколько параметров тела запроса { #multiple-body-parameters }
    
    В предыдущем примере, *операции пути* ожидали тело запроса в формате JSON, с параметрами, соответствующими атрибутам `Item`, например:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2
    }
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 19:57:34 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  9. docs/de/docs/advanced/stream-data.md

    # Daten streamen { #stream-data }
    
    Wenn Sie Daten streamen möchten, die als JSON strukturiert werden können, sollten Sie [JSON Lines streamen](../tutorial/stream-json-lines.md).
    
    Wenn Sie jedoch **reine Binärdaten** oder Strings streamen möchten, so können Sie es machen.
    
    /// info | Info
    
    Hinzugefügt in FastAPI 0.134.0.
    
    ///
    
    ## Anwendungsfälle { #use-cases }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:48:21 GMT 2026
    - 6K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/testing.md

    Depois é só fazer o mesmo nos seus testes.
    
    Por exemplo:
    
    * Para passar um parâmetro *path* ou *query*, adicione-o à própria URL.
    * Para passar um corpo JSON, passe um objeto Python (por exemplo, um `dict`) para o parâmetro `json`.
    * Se você precisar enviar *Dados de Formulário* em vez de JSON, use o parâmetro `data`.
    * Para passar *headers*, use um `dict` no parâmetro `headers`.
    * Para *cookies*, um `dict` no parâmetro `cookies`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 6.1K bytes
    - Click Count (0)
Back to Top