Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for imag (0.02 sec)

  1. tests/test_tutorial/test_additional_responses/test_tutorial002.py

    
    def test_path_operation_img(client: TestClient):
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
        assert response.headers["Content-Type"] == "image/png"
        assert len(response.content)
        os.remove("./image.png")
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_additional_responses/test_tutorial004.py

    
    def test_path_operation_img(client: TestClient):
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
        assert response.headers["Content-Type"] == "image/png"
        assert len(response.content)
        os.remove("./image.png")
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/schema-extra-example.md

    ### Beispiel in der Dokumentations-Benutzeroberfläche { #example-in-the-docs-ui }
    
    Mit jeder der oben genannten Methoden würde es in `/docs` so aussehen:
    
    <img src="/img/tutorial/body-fields/image01.png">
    
    ### `Body` mit mehreren `examples` { #body-with-multiple-examples }
    
    Sie können natürlich auch mehrere `examples` übergeben:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

                "name": "Foo",
                "price": 35.4,
                "image": {"url": "http://example.com/image.png"},
            },
        )
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
                    "loc": ["body", "image", "name"],
                    "input": {"url": "http://example.com/image.png"},
                    "msg": "Field required",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body_nested_models/test_tutorial006.py

                "images": {"url": "http://example.com/image.png", "name": "example image"},
            },
        )
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
                    "loc": ["body", "images"],
                    "input": {
                        "url": "http://example.com/image.png",
                        "name": "example image",
                    },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

                "name": "Foo",
                "price": 35.4,
                "image": {"url": "http://example.com/image.png"},
            },
        )
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
                    "loc": ["body", "image", "name"],
                    "input": {"url": "http://example.com/image.png"},
                    "msg": "Field required",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_nested_models/test_tutorial007.py

                    "price": 35.4,
                    "tax": 3.2,
                    "tags": ["foo"],
                    "images": [
                        {
                            "url": "http://example.com/image.png",
                            "name": "example image",
                        }
                    ],
                }
            ],
        }
    
        response = client.post(
            "/offers/",
            json=data,
        )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. docs/en/docs/index.md

        <img src="https://coverage-badge.samuelcolvin.workers.dev/fastapi/fastapi.svg" alt="Coverage">
    </a>
    <a href="https://pypi.org/project/fastapi" target="_blank">
        <img src="https://img.shields.io/pypi/v/fastapi?color=%2334D058&label=pypi%20package" alt="Package version">
    </a>
    <a href="https://pypi.org/project/fastapi" target="_blank">
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_body_nested_models/test_tutorial008.py

                                        "items": {"$ref": "#/components/schemas/Image"},
                                    }
                                }
                            },
                            "required": True,
                        },
                    }
                }
            },
            "components": {
                "schemas": {
                    "Image": {
                        "properties": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  10. README.md

    <a href="https://docs.railway.com/guides/fastapi?utm_medium=integration&utm_source=docs&utm_campaign=fastapi" target="_blank" title="Deploy enterprise applications at startup speed"><img src="https://fastapi.tiangolo.com/img/sponsors/railway.png"></a>
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 25 11:01:37 UTC 2025
    - 26.4K bytes
    - Viewed (0)
Back to top