Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for devices (0.11 sec)

  1. docs_src/separate_openapi_schemas/tutorial001.py

    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> List[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 489 bytes
    - Viewed (0)
  2. docs_src/separate_openapi_schemas/tutorial001_py310.py

    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 451 bytes
    - Viewed (0)
  3. docs_src/separate_openapi_schemas/tutorial002_py310.py

    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 486 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001.py

        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [
            {
                "name": "Portal Gun",
                "description": "Device to travel through the multi-rick-verse",
            },
            {"name": "Plumbus", "description": None},
        ]
    
    
    @needs_pydanticv2
    def test_openapi_schema(client: TestClient) -> None:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_separate_openapi_schemas/test_tutorial001_py39.py

        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [
            {
                "name": "Portal Gun",
                "description": "Device to travel through the multi-rick-verse",
            },
            {"name": "Plumbus", "description": None},
        ]
    
    
    @needs_py39
    @needs_pydanticv2
    def test_openapi_schema(client: TestClient) -> None:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. docs_src/separate_openapi_schemas/tutorial001_py39.py

    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 483 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_separate_openapi_schemas/test_tutorial002_py310.py

        response = client.get("/items/")
        assert response.status_code == 200, response.text
        assert response.json() == [
            {
                "name": "Portal Gun",
                "description": "Device to travel through the multi-rick-verse",
            },
            {"name": "Plumbus", "description": None},
        ]
    
    
    @needs_py310
    @needs_pydanticv2
    def test_openapi_schema(client: TestClient) -> None:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. docs_src/separate_openapi_schemas/tutorial002.py

    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> List[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 524 bytes
    - Viewed (0)
  9. fastapi/security/api_key.py

    from typing_extensions import Annotated, Doc
    
    
    class APIKeyBase(SecurityBase):
        pass
    
    
    class APIKeyQuery(APIKeyBase):
        """
        API key authentication using a query parameter.
    
        This defines the name of the query parameter that should be provided in the request
        with the API key and integrates that into the OpenAPI documentation. It extracts
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 23 22:29:18 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/cookie-params.md

    # Parámetros de Cookie
    
    Puedes definir parámetros de Cookie de la misma manera que defines parámetros de `Query` y `Path`.
    
    ## Importar `Cookie`
    
    Primero importa `Cookie`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="3"
        {!> ../../../docs_src/cookie_params/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="3"
        {!> ../../../docs_src/cookie_params/tutorial001_an_py39.py!}
        ```
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Apr 19 19:30:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top