Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 391 - 400 of 860 for foo2 (0.02 seconds)

  1. docs_src/query_params_str_validations/tutorial009_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[str | None, Query(alias="item-query")] = None):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 314 bytes
    - Click Count (0)
  2. tests/test_modules_same_name_body/test_main.py

    )
    def test_post(path):
        data = {"a": 2, "b": "foo"}
        response = client.post(path, json=data)
        assert response.status_code == 200, response.text
        assert data == response.json()
    
    
    @pytest.mark.parametrize(
        "path", ["/a/compute", "/a/compute/", "/b/compute", "/b/compute/"]
    )
    def test_post_invalid(path):
        data = {"a": "bar", "b": "foo"}
        response = client.post(path, json=data)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  3. docs_src/additional_status_codes/tutorial001_py310.py

    from fastapi import Body, FastAPI, status
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: str | None = Body(default=None),
        size: int | None = Body(default=None),
    ):
        if item_id in items:
            item = items[item_id]
            item["name"] = name
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 646 bytes
    - Click Count (0)
  4. docs_src/query_params_str_validations/tutorial004_an_py310.py

    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            str | None, Query(min_length=3, max_length=50, pattern="^fixedquery$")
        ] = None,
    ):
        results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
        if q:
            results.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 368 bytes
    - Click Count (0)
  5. compat/maven-compat/src/test/resources/local-repo/maven-test/jars/maven-test-c-1.0.jar

    foo...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4 bytes
    - Click Count (0)
  6. compat/maven-compat/src/test/resources/inheritance-repo/t05/maven-test/jars/t05-c-1.0.jar

    foo...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4 bytes
    - Click Count (0)
  7. compat/maven-compat/src/test/resources/inheritance-repo/t05/maven-test/jars/t05-d-1.0.jar

    foo...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4 bytes
    - Click Count (0)
  8. compat/maven-compat/src/test/resources/inheritance-repo/t06/maven-test/jars/t06-b-1.0.jar

    foo...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4 bytes
    - Click Count (0)
  9. compat/maven-compat/src/test/resources/inheritance-repo/t06/maven-test/jars/t06-d-1.0.jar

    foo...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4 bytes
    - Click Count (0)
  10. compat/maven-compat/src/test/resources/inheritance-repo/t07/maven-test/jars/t07-b-1.0.jar

    foo...
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4 bytes
    - Click Count (0)
Back to Top